CONST
is
the entry point for the subroutine which reads the console status
and sets it in register A.
Return Parameter
Register A
OOH
Indicates
that
the console input buffer
is
empty.
Register A
=
FFH
Indicates
that
the console input buffer contains
characters.
1iI"~@'
Entry Point: WBOOT + 06H
CONIN
is
the entry point for the subroutine which enables a character to be
input from the keyboard.
It
loops indefinitely until a character
is
entered when
the buffer
is
empty. Because it
is
also possible
to
press the Programmable Func-
tion keys, special provision
is
made for them as follows.
Return Parameters
Register A contains the ASCII code
of
the input character
if
a key other
than
a
PF
key
is
pressed.
The FUNKFLG (address F108H) setting determines the contents
of
register A
when a
PF
key
is
pressed.
If
FUNKFLG
is
set
to
FFH,
registers A and C contain the following data:
Register C Register A
Code returned by the
PF
keys
PF
key pressed
FFH
Code as in table
of
right
PFI
EOH
PF6
E5H
PF2
ElH
PF7
E6H
OTHER
KEY
OOH
ASCII code
pressed
PF3 E2H
PF8
E7H
PF4
E3H
PF9
E8H
PF5
E4H
PFIO
E9H
If
FUNCFLG
is
not set
to
FFH
(normally it will be 0), then register A will con-
tain the ASCII code
of
the key pressed
if
a key other
than
a
PF
key
is
pressed,
and will contain the first character
of
the
PF
key string
if
a
PF
key
is
pressed.
Continuous polling
of
the keyboard will cause the other characters
to
be en-
tered from the
PF
key string as
if
they were typed from the keyboard.
"'·m·
I
..
1
Entry Point: WBOOT + 09H
5-12
CONOUT
is
the entry point for the subroutine which outputs a character to
the console from register C. Note
that
a number
of
functions can be obtained
by using the control codes in Appendix E
and
also the ESC control sequences
in Appendix A.
Entry parameter
Register C
= ASCII code
of
character to be
output
to the console
5.7.4 BIOS subroutines for use with devices
Entry point: WBOOT +
OCH
LIST
is
the entry point for the subroutine which outputs a character
to
the log-
ical device LST:.
It
will be output
if
both
DSR and TxRDY
are"
1 " , otherwise
will wait until these conditions are satisfied.
Entry parameter
Register C
= ASCII code
of
character
to
be
output
to LST:
Entry Point: WBOOT
+
OFH
PUNCH
is
the entry point for the subroutine which outputs a character to the
logical device
PUN:.
Entry parameter
Register C
= ASCII code
of
character to be
output
'j1:t!nljAi
Entry Point: WBOOT + 12H
READER
is
the entry point for the subroutine which reads a character from
the logical device RDR:. This subroutine loops until a character
is
input.
Return Parameter
Register A
= ASCII code
of
character input from RDR:
5-13
I