EasyManua.ls Logo

Husky Hunter - Page 476

Husky Hunter
499 pages
Print Icon
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...
APPENDIX SECTION 9. 15
9,15
Read Console fuffer
CP/M call 1 O, Read Console Buffer, has a range of additional
facilities.
The read buffer reads a line of edited console input into a buffer
addressed by registers DE, Console input is terminated when either
the buffer overflows, or on control
J or control M,
The Read buffer is of the form:
DE
I +O I + 1 I +2 I +3 I +4 I +5 I . .. I +N I
I
mx I nc I c1 I c2 I c3 I c4 I .... , I ?? I
where mx is maximum number of characters the buffer will hold (1 to
255).
nc is the number of characters read (set by DEMOS on return). nc is
followed by C1, C2, etc., the characters read from the console.
If nc
< mx then uninitialised positions follow the last character
(represented above
by?).
A number of control functions are recognised during line edit:
VER.V09F
Control C reboots system if at start of line
Control E causes physical end of line
Control H backspace one character position
Control
J terminate input
Control
M terminate in(:A.lt
Control R retype current line after new line
Control X backspaces to beginning of current line
PAGE 9 - 57