Output String Using Pointers (.Outln/Outstr) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.OUTLN
.OUTSTR
5.2.12 Output String Using Pointers
SYSCALL
TRAP CODE: $0022
SYSCALL
TRAP CODE: $0021
.OUTSTR outputs a string of characters to the default output port. .OUTLN outputs a string of
characters followed by a <CR><LF> sequence.
Entry Conditions:
SP ==>
Exit Conditions:
SP ==>
EXAMPLE
If A0 = start of string and A1 = end of string+1
MOVEM.L
A0/A1,-(A7)
SYSCALL
.OUTSTR
M68CPU32BUG/D REV 1
Output String Using Pointers
.OUTLN
.OUTSTR
Address of first character <long>
+4 Address of last character + 1 <long>
Top of stack
Load pointers to string and print it
5-16
SYSTEM CALLS
.OUTLN
.OUTSTR

Advertisement

Table of Contents
loading

Table of Contents