User`s manual

.READLN
5-12
5
.READLN
Name
.READLN - Read line to Þxed-length buffer
Code
$0004
Description
.READLN is used to read a string of characters from the default
input port. Characters are echoed 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 in the
input string, excluding the
<CR><LF> sequence. A string may be up
to 254 characters.
Entry Conditions
R03: 32-bit address of input buffer
Exit Conditions Different From Entry
The Þrst byte in the buffer indicates the string length.
Note The caller must allocate 256 bytes for a buffer. Input
may be up to 254 characters. A
<CR><LF> sequence is
sent to default output following echo of input. The
control characters described in the section Control
Characters in Chapter 2 are in effect.