SERIAL PORT CONTROL REGISTER

u8 in IO at 0x48 called SERIALCTRL

76543210
xxxxxRTO

R: R. Recieve Buffer Full (1=full, 0=empty)
T: R. Transmit Buffer Full (1=full, 0=empty)
O: R. Recieve Buffer Overflowed (1=RX overflow occurred, 0=normal)
O: .W Clear Recieve Buffer Overflow Flag (1=Clear the RX overflow flag, 0=no change)

const SC_RXBUF_FULL


SC_RXBUF_FULL = 4

const SC_TXBUF_FULL


SC_TXBUF_FULL = 2

const SC_RXBUF_OVERFLOW


SC_RXBUF_OVERFLOW = 1

SERIAL PORT TRANSMIT BUFFER

u8 in IO at 0x49 called TXBUF

76543210
BBBBBBBB

B: .W Byte to transmit.
NOTE: Writing to this address causes the SERIALCTRL.T flag to be set.
The SERIALCTRL.T will clear automatically when the transmission completes.

SERIAL PORT RECIEVE BUFFER

u8 in IO at 0x4A called RXBUF

76543210
BBBBBBBB

B: R. Most recently recieved byte.
NOTE: Reading this address causes the SERIALCTRL.R flag to be cleared.