SYSTEM CALLS
M68CPU32BUG/D REV 1 5-16
.OUTLN Output String Using Pointers .OUTLN
.OUTSTR .OUTSTR
5.2.12 Output String Using Pointers
SYSCALL .OUTLN
TRAP CODE: $0022
SYSCALL .OUTSTR
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 ==> Address of first character <long>
+4 Address of last character + 1 <long>
Exit Conditions:
SP ==> Top of stack
EXAMPLE
If A0 = start of string and A1 = end of string+1
MOVEM.L A0/A1,-(A7)
Load pointers to string and print it
SYSCALL .OUTSTR
SYSTEM CALLS
M68CPU32BUG/D REV 1 5-17
.PCRLF Print Carriage Return and Line Feed .PCRLF
5.2.13 Print Carriage Return and Line Feed
SYSCALL .PCRLF
TRAP CODE: $0026
.PCRLF sends a carriage return and a line feed to the default output port.
Entry Conditions:
No arguments or stack allocation required.
Exit Conditions:
None
EXAMPLE
SYSCALL .PCRLF Output a carriage return and line feed
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Komentáře k této Příručce