*
* Various useful constants
*

* Include Debug info

DBG_SYS       equ %0000000000000001 Debug system (scheduler, etc)
DBG_8274      equ %0000000000000010 Debug ACIA drivers
DBG_INT       equ %0000000000000100 Debug Interrupt routine
DBG_TRMI      equ %0000000000001000 Debug terminal interrupts
DBG_IO        equ %0000000000010000 Debug I/O Main routine
DBG_HAN       equ %0000000000100000 Debug terminal handler
DBG_SLP       equ %0000000001000000 Debug Sleep/Wakeup
DBG_TASK      equ %0000000010000000 Debug tasking
DBG_CMD       equ %0000000100000000 Debug I/O tasks
DBG_MSG       equ %0000001000000000 Debug high level messages
DBG_INIT      equ %0000010000000000 Print initialization messages
DBG_OPEN      equ %0000100000000000 Debug Open actions
*
DEBUG         equ %0000110100000100
DEBUG_CONTROL set %0000111100111111
DEBUG_CONTROL set %0000000000000000

DO_HISTORY set 1 Include transaction history mechanism
DO_IXON set 0 Include Input XON/XOFF Handshaking

* Character Constants

INTRC equ $03 DEL character
EOTCH equ $04 EOT character
BSPCH equ $08 back space character
TABCH equ $09 tab character
NL    equ $0A Line Feed
CR    equ $0D Carriage Return
DLE   equ $10 Data Link Escape (DLE)
XOFFC equ $13 XOFF character
XONC  equ $11 XON character
CNCLC equ $18 line cancel char
HOLDC equ $1B ESC - suspend output
QUITC equ $1C FS character
SPACE equ $20 space character

* Process Priorities

RUNPRI  equ  70 Must run NOW
TTYIPR  equ -10 Waiting for terminal input
TTYOPR  equ -20 Waiting for terminal output - in ttywrt
TTYSPR  equ -30 Waiting for space in output Q - in req_write
TTYLOCK equ -35 Waiting for access to TTY table
TIQPRI  equ -40 Waiting for a terminal interrupt to process
FIOPRI  equ -50 Waiting for the FIO
CLOCKPR equ -60 Waiting for a clock tick

* UniFLEX signals

HANGS equ 1 Device hangup
INTS equ 2 Program quit (Control-C)
QUITS equ 3 Program abort (Control-backslash)

* -- Configuration constants

MAX_TI equ 10 # Queued terminal interrupts
MAX_TTY equ 32 # terminal devices
MAX_PPR equ 3 # printer devices
MAX_NEC equ 1 # NEC printers
MAX_CL  equ 124 upper limit on # CLISTS
MAX_OB  equ 8*128 upper limit on output buffer size
MIN_OB  equ (2*128)+32 lower limit on output buffer size
MAX_TSK equ 40 52 upper limit on # of tasks
MIN_TSK equ 36 lower limit on # of tasks
*
MAX_DEV equ MAX_TTY+MAX_PPR+MAX_NEC+1 (Includes TOD clock)
