EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 80

Radio Shack TRS-80 Model III
274 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TRS-80
MODEL
$KBLINE
64/X0040'
Wait
for
a Line from
the Keyboard
This routine
gets a full line from the Keyboard. The line
is
terminated
by a carriage
return
(X'OD') or (BREAK) (X'01
').
Characters
typed are
echoed
to the display.
Entry
Conditions
B
=
Maximum length of line. When this many
characters
are typed,
no more will be allowed except for (ENTER) or (BREAK)
(HL)
=
Storage buffer. Length should be
B
+ 1
.
Exit Conditions
C Status
=
(BREAK) was the terminator.
B
=
Number of characters entered.
(HL)
=
Line
from keyboard, followed by terminating character.
DE
is altered.
Sample Z-80 Programming
SeeSCSHWR.
$KBWAIT
73/X0049'
Wait
for
a Keyboard Character
This routine scans
the keyboard until a key is pressed. If (BREAK) is pressed, it wil
be returned
in
A
like
any other key. The character typed is not echoed to the
Display.
Entry Conditions
None
70

Other manuals for Radio Shack TRS-80 Model III

Related product manuals