Functions built into the Simulator's IO page.

The following table lists the IO functions supported within the IO page. The IO Page is set in the options menu. The variable "IO_AREA" is reserved and will return the start address of the IO page. Data is passed through the accumulator register.

TERMINAL_CLS - clear terminal window, set cursor at (0,0) position.

TERMINAL_OUT - output single character interpreting control characters.

Terminal can only recognize these control characters:
TERMINAL_OUT_CHR - outputs single character; control chars are being output just like regular characters.

TERMINAL_OUT_HEX - outputs single byte as a two-digit hexadecimal number.

TERMINAL_IN - input single byte, returns 0 if there's no characters available in terminal's buffer
    When I/O terminal window is active, it can accept keyboard input; press [Ins] key to paste clipboard's contents into terminal.

TERMINAL_X_POS - cursor X position (column).

TERMINAL_Y_POS - cursor Y position (row).