

******* Static System Variables **************************************

; STRUCTURE  ExecBase,LIB_SIZE   	EQU	36        ; Standard library node

SoftVer      EQU	36   ; kickstart release number
SoftVershort
LowMemChkSum 	EQU	38   ; checksum of 68000 trap vectors
LowMemChkSumshort            
ChkBase       	EQU	40  ; system base pointer complement
ChkBaseint
ColdCapture     EQU	42	; cold soft capture vector
ColdCaptureint
CoolCapture	EQU	46     ; cool soft capture vector
CoolCaptureint
WarmCapture	EQU	50     ; warm soft capture vector
WarmCaptureint
SysStkUpper	EQU	54     ; system stack base   (upper bound)
SysStkUpperint
SysStkLower	EQU	58     ; top of system stack (lower bound)
SysStkLowerint
MaxLocMem  	EQU	62     ; last calculated local memory max
MaxLocMemint
DebugEntry  	EQU	66    ; global debugger entry point
DebugEntryint
DebugData	EQU	70       ; global debugger data segment
DebugDataint
AlertData	EQU	74       ; alert data segment
AlertDataint
MaxExtMem	EQU	78       ; top of extended mem, or null if none
MaxExtMemint
ChkSum		EQU	82          ; for all of the above
ChkSumshort

******* Interrupt Related ********************************************

IntVects  	SET	84
IVTBE		EQU	84	;IV_SIZE	EQU	12
IVDSKBLK	EQU	96	;IV_SIZE
IVSOFTINT	EQU	108	;IV_SIZE
IVPORTS		EQU	120	;IV_SIZE
IVCOPER		EQU	132	;IV_SIZE
IVVERTB		EQU	144	;IV_SIZE
IVBLIT		EQU	156	;IV_SIZE
IVAUD0		EQU	168	;IV_SIZE
IVAUD1		EQU	180	;IV_SIZE
IVAUD2		EQU	192	;IV_SIZE
IVAUD3		EQU	204	;IV_SIZE
IVRBF		EQU	216	;IV_SIZE
IVDSKSYNC	EQU	228	;IV_SIZE
IVEXTER		EQU	240	;IV_SIZE
IVINTEN		EQU	252	;IV_SIZE
IVNMI		EQU	264	;IV_SIZE


******* Dynamic System Variables ****

ThisTask	EQU	276      	; pointer to current task
ThisTaskint           
IdleCount	EQU	280       ; idle counter
IdleCountint
DispCount	EQU	284       ; dispatch counter
DispCountint
Quantum		EQU	288         ; time slice quantum
Quantumshort
Elapsed		EQU	290         ; current quantum ticks
Elapsedshort
SysFlags	EQU	292        ; misc system flags
SysFlagsshort
IDNestCnt	EQU	294       ; interrupt disable nesting count
IDNestCntchar
TDNestCnt	EQU	295       ; task disable nesting count
TDNestCntchar
AttnFlags	EQU	296       ; special attention flags
AttnFlagsshort
AttnResched	EQU	298     ; rescheduling attention
AttnReschedshort
ResModules	EQU	300      ; pointer to resident module array
ResModulesint
TaskTrapCode	EQU	304    ; default task trap routine
TaskTrapCodeint
TaskExceptCode	EQU	308  ; default task exception code
TaskExceptCodeint
TaskExitCode	EQU	312    ; default task exit code
TaskExitCodeint
TaskSigAlloc	EQU	316    ; preallocated signal mask
TaskSigAllocint
TaskTrapAlloc 	EQU	320  ; preallocated trap mask
TaskTrapAllocint

******* System List Headers ****

MemList		EQU	322	;LH_SIZE  EQU	14
ResourceList	EQU	336	;LH_SIZE
DeviceList	EQU	350	;LH_SIZE
IntrList	EQU	364	;LH_SIZE
LibList		EQU	378	;LH_SIZE
PortList	EQU	392	;LH_SIZE
TaskReady	EQU	406	;LH_SIZE
TaskWait	EQU	420	;LH_SIZE
SoftInts	EQU	434	;SH_SIZE*5 EQU 	16

LastAlert	EQU	514	;4*4


VBlankFrequency	EQU	530
VBlankFrequencechar
PowerSupplyFrequency	EQU	531
PowerSupplyFrequencechar
SemaphoreList	EQU	532	;LH_SIZE

KickMemPtr	EQU	546      ; ptr to queue of mem lists
KickMemPtrint
KickTagPtr	EQU	550      ; ptr to rom tag queue
KickTagPtrint            
KickCheckSum	EQU	554    ; checksum for mem and tags
KickCheckSumint
ExecBaseReserved	EQU	558	;10
ExecBaseNewReserved	EQU	568	;20

SYSBASESIZE		SET	588

******* AttnFlags
*  Processors and Co-processors:
        BITDEF  AF,68010,0      ; also set for 68020
        BITDEF  AF,68020,1
        BITDEF  AF,68881,4
        BITDEF  AF,RESERVED8,8
        BITDEF  AF,RESERVED9,9


