Output String With Data (.Writd/Writln) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.WRITD
.WRITDLN
5.2.22 Output String with Data
SYSCALL
TRAP CODE: $0028
SYSCALL
TRAP CODE: $0025
These trap functions use the monitor I/O routine which outputs a user string containing
embedded variable fields. .WRITD outputs a string of characters with data and .WRITDLN
outputs a string of characters with data followed by a carriage return and line feed. The user
passes the starting address of the string and the data stack address containing the data which is
inserted into the string. The output goes to the default output port.
Entry Conditions:
Eight bytes of parameter positioned in the stack as follow:
SP ==>
A separate data stack or data list arranged as follows:
Data list pointer =>
Exit Conditions:
SP ==>
M68CPU32BUG/D REV 1
Output String with Data
.WRITD
– Output string with data
.WRITDLN
– Output string with data and <CR><LF>
Address of string <long>
Data list pointer <long>
Data for 1st variable in string
Data for next variable
Data for next variable
Top of stack (parameter bytes removed)
<long>
<long>
<long>
5-27
SYSTEM CALLS
.WRITD
.
.WRITDLN

Advertisement

Table of Contents
loading

Table of Contents