SYSTEM CALLS
M68CPU32BUG/D REV 1
5-18
.READLN
Read Line to Fixed-Length Buffer
.READLN
5.2.14 Read Line to Fixed-Length Buffer
SYSCALL
.READLN
TRAP CODE:
$0004
Reads a string of characters from the default input port. Characters echo to the default output
port. A string consists of a count byte followed by the characters read from the input. The count
byte indicates the number of characters read from the input as well as the number of characters in
the input string, excluding carriage return <CR> and line feed <LF>. A string may be as many as
254 characters.
Entry Conditions:
SP ==>
Address of input buffer <long>
Exit Conditions:
SP ==>
Top of stack
The first byte in the buffer indicates the string length.
EXAMPLE
If A0 points to a 256 byte buffer;
PEA
(A0)
Long buffer address
SYSCALL
.READLN
And read a line from the default input port
NOTE
The caller must allocate 256 bytes for a buffer. Input are limited to
254 characters. <CR> and <LF> are sent to default output
following echo of the input. 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 ...