Motorola M68CPU32BUG User Manual Page 141

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 140
SYSTEM CALLS
M68CPU32BUG/D REV 1 5-27
.WRITD Output String with Data ..WRITD
.WRITDLN .WRITDLN
5.2.22 Output String with Data
SYSCALL .WRITD – Output string with data
TRAP CODE: $0028
SYSCALL .WRITDLN – Output string with data and <CR><LF>
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 ==> Address of string <long>
Data list pointer <long>
A separate data stack or data list arranged as follows:
Data list pointer => Data for 1st variable in string <long>
Data for next variable <long>
Data for next variable <long>
Exit Conditions:
SP ==> Top of stack (parameter bytes removed)
Page view 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 195 196

Comments to this Manuals

No comments