 sttl Variable Space
 pag

 org RAMorg

sys_vars rmb 0 -- start of system variables

* Configuration "constants"
NUM_CL  rmb 1 Number of Clists
NUM_TRM rmb 1 Number of terminal devices
NUM_NEC rmb 1 Number of NEC devices
NUM_PPR rmb 1 Number of parallel printer devices
NUM_TSK rmb 1 Number of tasks
OBUF_SIZE rmb 2 Size of TTY Output Queues
OQHI      rmb 2 Output Queue High-water mark
OQLO      rmb 2 Output Queue Low-water mark
slot_tbl  rmb 2*NUM_SLOTS slot configuration

DB_iflg rmb 1 Debug terminal initialized
DB_cntrl rmb 2 Debug control flags
*
runlst rmb 2 Pointer to active tasks
slplst rmb 4 Pointer to waiting tasks
utask rmb 2 Currently executing task
jobpri rmb 1 Current job priority (for scheduling)
chproc rmb 1 Set if must switch users of CPU (reschedule)
cfreel rmb 2 Pointer to first free Clist buffer
cbufct rmb 1 Count of Clist buffers in use
lcbuf rmb 1 Limit on Clist buffers
idle rmb 1 idle loop flag for scheduler
TI_Q rmb 2*MAX_TI Max Terminal Interrupts
TI_Q_ptr rmb 2 current Q pointer
FIO_lock rmb 1 FIO in use lock
int_buf rmb 4 Current Message in
int_ptr rmb 2 Message in pointer
clock_tick rmb 1 Clock tick counter
prcbuf rmb PRCSIZ buffer for erase and kill
 if DO_HISTORY
hstbuf rmb HRECSIZ*MAXHIST
hstptr rmb 2 next "put" pointer in history queue
 endif
* Pointers to system tables - configuration dependent
CLISTS rmb 2 Space for Clists
TTYTABS rmb 2 Terminal tables
TTYQS   rmb 2 TTY Input Queue Headers
OBUFRS  rmb 2 TTY Output Queues
tsktab  rmb 2 Task Control Tables
tskend  rmb 2 End of task table
PPstr   rmb 2 Pointer to parallel device tables
NECstr  rmb 2 Pointer to NEC device tables
dev_tab rmb DEV_SIZE*MAX_DEV system configuration table
NEC_IQ  rmb 2 Pointer to NEC input queue
NECADR  rmb 2 Address of NEC printer
*
SYS_TABS rmb 0 Start of dynamic system tables

end_vars equ RAMend End of System Variables
