 sttl Output Queue Structure
 pag

*
* This is the definition of the output queue used
* to buffer characters going to a terminal.  It is
* different from the "clist" mechanism for efficiency
* concerns.
*

 org 0
oq_count rmb 2 Number of characters in Q
oq_buf rmb 2 Start of Q buffer
oq_put rmb 2 Address of next character to insert
oq_get rmb 2 Address of next character to consume
oq_end rmb 2 Limiting address of Q
*
OQH_SIZE rmb 0 Size of output Queue header
OBUF_SIZE equ 3*128 Actual output buffer size
OQHI equ OBUF_SIZE-10 Never fill more than this
OQLO equ OQHI-128-5 Start refilling here
