System information

FUNCTION 5: LIST OUTPUT
Entry Parameters:
Register C: 05H
Register E: ASCII Character
The List Output function sends the ASCII character in register E to the logical listing device.
FUNCTION 6: DIRECT CONSOLE 1/0
Entry Parameters:
Register C: 06H
Register E: OFFH (input) or
char(output)
Returned Value: char or status Register A:
Direct Console I/O is supported under CP/M for those specialized applications where basic
console input and output are required. Use of this function should, in general, be avoided since it
bypasses all of the CP/M normal control character functions (for example, CTRL-S and
CTRL-P). Programs that perform direct I/O through the BIOS under previous releases of CP/M,
however, should be changed to use direct I/O under BDOS so that they can be fully supported
under future releases of MP/M and CP/M.
Upon entry to Function 6, register E either contains hexadecimal FF, denoting a console input
request, or an ASCII character. If the input value is FF, Function 6 returns A = 00 if no character
is ready, otherwise A contains the next console input character.
If the input value in E is not FF, Function 6 assumes that E contains a valid ASCII character that
is sent to the console.
Function 6 must not be used in conjunction with other console I/O functions.
5.2 Call Conventions CP/M Operating System Manual
5-14