Instruction manual
GETC
GETC
Get a character from the console terminal.
Format
char = DISPATCH(GETC,
UNIT);
Arguments
GETC
The function code for GETC (1
16
).
UNIT
The unit number from which to get the character. Section 16.5.3 gives unit
number information.
Description
The GETC console service routine attempts to read one character from the
current console device. If a character is available it is returned in the low 32 bits
of R0. The character is echoed on the console terminal.
Returns:
R0<63:61> = 000 Success; character received
R0<63:61> = 001 Success; character received; more to be read
R0<63:61> = 100 Failure, character not yet ready for reception
R0<63:61> = 110 Failure, character received with error
R0<63:61> = 111 Failure, character received with error; more to be read
R0<60:48> Device-specific error status
R0<47:40> Should be zero
R0<39:32> Unit number of device that has information
R0<31:0> Value of character read from console terminal
16–58 Console