User`s manual
System Call Routines
5-2
5
String Formats for I/O
Within the context of the System Call handler there are two formats
for strings:
A line is defined as a string followed by a carriage return and a line
feed (<CR><LF>).
System Call Routines
The system call routines are described in this chapter, in order by
the 16-bit hex code. Table 5-1 list the routines in code order; Table
5-2 lists them in alphabetical order.
On entry to firmware system call routines, the machine state is
saved so that a subsequent abort or break condition allows you to
resume if you wish.
Pointer/Pointer Format The string is defined by a pointer to
the first character and a pointer to the
last character + 1.
Pointer/Count Format The string is defined by a pointer to a
count byte, which contains the count
of characters in the string, followed
by the string itself.
Table 5-1. System Call Routines -- Hex Code Order
Code Routine Description
$0000 .INCHR Input character
$0001 .INSTAT Input serial port status
$0002 .INLN Input line (pointer/pointer format)
$0003 .READSTR Input string (pointer/count format)
$0004 .READLN Input line (pointer/count format)
$0005 .CHKBRK Check for break
$0010 .DSKRD Disk read
$0011 .DSKWR Disk write