TOM_W_WAKE	EQU	0                
TOM_W_STARVE	EQU	1                
TOM_W_TIMCLEAR	EQU	2                
TOM_W_BEEPDONE	EQU	3                
TOM_W_VDMMHOOK	EQU	4                
TOM_W_TIMESLICE	EQU	5                
TOM_W_SWAPSHRINK	EQU	6               
TOM_W_CODEUNLOCK	EQU	7               
ifdef TOMTESTWORKER
TOM_W_TEST	EQU	8                
endif
TOM_W_MAX	EQU	9                
ifdef TOMTESTWORKER
endif
TOM_8MS_MASK	EQU	00000007H       
TOM_32MS_MASK	EQU	0000001FH       
TOM_WORKER_MASK	EQU	0000001FH       
TOM_HIRES_FLAG	EQU	00000020H       
TOM_HIRES_MASK	EQU	00000078H       
TOM_ORDER0_MASK	EQU	000003E0H       
TOM_ORDER1_MASK	EQU	00007C00H       
TOM_ORDER2_MASK	EQU	00078000H       
TOM_ORDER3_MASK	EQU	00380000H       
TOM_ORDER4_MASK	EQU	07C00000H       
TOM_ORDER5_MASK	EQU	0F8000000H       
TOM_HIRES_SHIFT	EQU	3               
TOM_ORDER0_SHIFT	EQU	5               
TOM_ORDER1_SHIFT	EQU	10               
TOM_ORDER2_SHIFT	EQU	15               
TOM_ORDER3_SHIFT	EQU	19               
TOM_ORDER4_SHIFT	EQU	22               
TOM_ORDER5_SHIFT	EQU	26               
TOM_8MS_TICK	EQU	8                
TOM_32MS_TICK	EQU	32               
TOM_HIRES_INCR	EQU	(1   SHL  TOM_HIRES_SHIFT)  
TOM_ORDER0_INCR	EQU	(1   SHL  TOM_ORDER0_SHIFT) 
TOM_ORDER1_INCR	EQU	(1   SHL  TOM_ORDER1_SHIFT) 
TOM_ORDER2_INCR	EQU	(1   SHL  TOM_ORDER2_SHIFT) 
TOM_ORDER3_INCR	EQU	(1   SHL  TOM_ORDER3_SHIFT) 
TOM_ORDER4_INCR	EQU	(1   SHL  TOM_ORDER4_SHIFT) 
TOM_ORDER5_INCR	EQU	(1   SHL  TOM_ORDER5_SHIFT) 
TOM_HIRES_LIMIT_MASK	EQU	0FFFFFFC0H       
TOM_ORDER0_LIMIT_MASK	EQU	0FFFFFC00H       
TOM_ORDER1_LIMIT_MASK	EQU	0FFFF8000H       
TOM_ORDER2_LIMIT_MASK	EQU	0FFF80000H       
TOM_ORDER3_LIMIT_MASK	EQU	0FFC00000H       
TOM_ORDER4_LIMIT_MASK	EQU	0F8000000H       
TOM_ORDER5_LIMIT_MASK	EQU	0                
TOM_HIRES_HASHSIZE	EQU	16               
TOM_NEXT8_HASHSIZE	EQU	1               
TOM_NEXT32_HASHSIZE	EQU	1               
TOM_ORDER0_HASHSIZE	EQU	32               
TOM_ORDER1_HASHSIZE	EQU	32               
TOM_ORDER2_HASHSIZE	EQU	16               
TOM_ORDER3_HASHSIZE	EQU	8               
TOM_ORDER4_HASHSIZE	EQU	1               
TOM_ORDER5_HASHSIZE	EQU	1               
TOM_MIGRATE_HASHSIZE	EQU	1               
TOM_HIRES_HASHTIME	EQU	TOM_HIRES_HASHSIZE * TOM_8MS_TICK
TOM_HASHBASE	EQU	0 
TOM_HIRES_HASHBASE	EQU	TOM_HASHBASE   
TOM_NEXT8_HASHBASE	EQU	(TOM_HIRES_HASHBASE + TOM_HIRES_HASHSIZE)
TOM_NEXT32_HASHBASE	EQU	(TOM_NEXT8_HASHBASE + TOM_NEXT8_HASHSIZE)
TOM_ORDER0_HASHBASE	EQU	(TOM_NEXT32_HASHBASE + TOM_NEXT32_HASHSIZE)
TOM_ORDER1_HASHBASE	EQU	(TOM_ORDER0_HASHBASE + TOM_ORDER0_HASHSIZE)
TOM_ORDER2_HASHBASE	EQU	(TOM_ORDER1_HASHBASE + TOM_ORDER1_HASHSIZE)
TOM_ORDER3_HASHBASE	EQU	(TOM_ORDER2_HASHBASE + TOM_ORDER2_HASHSIZE)
TOM_ORDER4_HASHBASE	EQU	(TOM_ORDER3_HASHBASE + TOM_ORDER3_HASHSIZE)
TOM_ORDER5_HASHBASE	EQU	(TOM_ORDER4_HASHBASE + TOM_ORDER4_HASHSIZE)
TOM_MIGRATE_HASHBASE	EQU	(TOM_ORDER5_HASHBASE + TOM_ORDER5_HASHSIZE)
TOM_HASHSIZE	EQU	(TOM_MIGRATE_HASHBASE + TOM_MIGRATE_HASHSIZE)
TOM_LAST_HASHBASE	EQU	TOM_MIGRATE_HASHBASE
TOM_WAIT_FOREVER	EQU	0FFFFFFFFH       

tow_s	STRUC
tow_ptoeNext	DD	?
tow_ptoePrev	DD	?
tow_s	ENDS

tow_t struc
db size tow_s dup(?)
tow_t ends

