*
* IOP ROM Version #
*
ROM_VERSION equ $14 Major/Minor Version of IOP ROM

*
* Error codes
*
REJECT equ %10000000 Error/Reject bit in command response
E_BADCMD equ REJECT+$01 Illegal command
E_SYSBSY equ REJECT+$02 IOP saturated
E_NTOPEN equ REJECT+$03 Selected device not open
E_BADDEV equ REJECT+$04 Illegal device # (=3)
E_INTRPT equ REJECT+$3E Terminal interrupt (send by IOP to UniFLEX)
E_ABORT  equ REJECT+$3F Transaction aborted by UniFLEX (not sent by IOP)

*
* Normal responses
*
R_RESET  equ $01 System reset & functioning
R_OPEN   equ $02 Device open successful
R_CLOSE  equ $03 Device close successful
R_REQOK  equ $04 Write request now granted
R_WRITE  equ $05 Write data complete
R_TTY    equ $06 TTYSET/GET complete
R_RDOK   equ $07 Read data now available
R_SNDNC  equ $08 Read data in FIFO & no more data is available
R_RD1C   equ $09 Single character available
R_INTRPT equ $0A Interrupt complete
R_SNDMC  equ $0B Read data in FIFO & there is more available

*
* Request codes (from Main CPU)
*
O_OPEN   equ $10 Open device
O_CLOSE  equ $20 Close device
O_TTYS   equ $30 TTY Set
O_TTYG   equ $40 TTY Get
O_RQWR   equ $50 Request write
O_WRITE  equ $60 Write data
O_WRC    equ $70 Write single character
O_RQRD   equ $80 Request read data
O_SEND   equ $90 Send data for read
O_INTRPT equ $A0 Interrupt all tasks on a terminal
