Input Line Routine (.Inln) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.INLN
5.2.8
Input Line Routine
SYSCALL
TRAP CODE:
Reads a line from the default input port. The minimum buffer size is 256 bytes.
Entry Conditions:
SP ==>
Exit Conditions:
SP ==>
EXAMPLE
If A0 contains the string destination address:
SUBQ.L
#4,A7
PEA
(A0)
TRAP
#15
DC.W
2
MOVE.L
(A7)+,A1
A line is a string of characters terminated by a carriage return
(<CR>). The maximum allowed size is 254 characters. The
terminating <CR> is not included in the string. See Terminal
Input/Output Control character processing as described in Chapter
1.
M68CPU32BUG/D REV 1
Input Line Routine
.INLN
$0002
Address of string buffer <long>
Address of last character in the string+1 <long>
Allocate space for result
Push pointer to destination
(May also invoke by SYSCALL
macro (''SYSCALL .INLN'')
Retrieve address of last character+1
NOTE
5-12
SYSTEM CALLS
.INLN

Advertisement

Table of Contents
loading

Table of Contents