Motorola M68CPU32BUG Bedienungsanleitung Seite 132

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 196
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 131
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.
Seitenansicht 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 195 196

Kommentare zu diesen Handbüchern

Keine Kommentare