SYSTEM CALLS
M68CPU32BUG/D REV 1
5-12
.INLN
Input Line Routine
.INLN
5.2.8
Input Line Routine
SYSCALL
.INLN
TRAP CODE:
$0002
Reads a line from the default input port. The minimum buffer size is 256 bytes.
Entry Conditions:
SP ==>
Address of string buffer <long>
Exit Conditions:
SP ==>
Address of last character in the 1 <long>
EXAMPLE
If A0 contains the string destination address:
SUBQ.L
#4,A7
Allocate space for result
PEA
(A0)
Push pointer to destination
TRAP
#15
(May also invoke by SYSCALL
DC.W
2
macro (’’SYSCALL .INLN’’)
MOVE.L
(A7)+,A1
Retrieve address of last ch1
NOTE
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
Страница 16: ...GENERAL INFORMATION M68CPU32BUG D REV 1 1 8 ...
Страница 30: ...DEBUG MONITOR DESCRIPTION M68CPU32BUG D REV 1 2 14 ...
Страница 102: ...DEBUG MONITOR COMMANDS M68CPU32BUG D REV 1 3 72 ...
Страница 168: ...DIAGNOSTIC FIRMWARE GUIDE M68CPU32BUG D REV 1 6 24 ...