
.
.
.   Hardware defined constants for indexing and referencing an exchange
.   package or stack frame.
.

sfsa_mcr  equ      48            .Offset to MCR in Stk Frame Save Area
sfsa_ucr  equ      40            .Offset to UCR in Stk Frame Save Area
xpsize    equ      416           .Exchange package size (bytes)
xptp      equ      282           .XP offset to Trap Pointer
xpdlp     equ      290           .XP offset to Debug list pointer.
xpstau    equ      272           .XP offset to seg Table Adr upper
xpstal    equ      280           .XP offset to seg Table Adr lower
xpdebugi  equ      288           .XP offset to debug index.
xpdebugm  equ      289           .XP offset to debug mask.
xputp     equ      274           .XP offset to UTP
xpflgte   equ      16            .XP offset to FLAGS and TE
xpmcr     equ      48            .XP offset to MCR field
xpucr     equ      40            .XP offset to UCR field
xp170mf   equ      43            .XP offset to byte containing 170 mtr flag
xpvmid    equ      8             .XP offset to VMID field
xpfdesc   equ      16            .XP offset to SFSA frame descriptor.
xpcff     equ      16            .XP offset to CFF flag.
xpstl     equ      128           .XP offset to Seg Table Len
xpum      equ      24            .XP offset to User Mask
xpmm      equ      32            .XP offset to Monitor Mask
xpkm      equ      64            .XP offset to Keypoint Mask
xppit     equ      88            .XP offset to PIT (upper)
xpbc1     equ      104           .XP offset to Base Constant (upper)
xpbc2     equ      112           .XP offset to Base Constant (lower)
xplrn     equ      296           .XP offset to LRN
xpxregs   equ      136           .XP offset to first X register
xptos     equ      298           .XP offset to Top of Stack

.  Define constants for MCR and UCR mask bits.

m_mcrsit  equ      00010(16)     .MCR masks
m_mcrexs  equ      00090(16)     .EXT INT and SIT
m_mcrhdw  equ      0a000(16)     .DUE and SHORT WARNING
m_mcrsrw  equ      02000(16)
m_mcrdue  equ      08000(16)
m_mcrei   equ      00080(16)
m_mcrexc  equ      00400(16)
m_mcrpf   equ      00040(16)
m_mcrmcl  equ      00020(16)
m_mcrsel  equ      00002(16)
m_mcrtrx  equ      00001(16)
m_mcrelt  equ      00003(16)     .SOFT ERROR LOG and TRAP EXCEPTION.

m_ucrff   equ      02000(16)
m_ucrcff  equ      00400(16)
m_ucrkp   equ      00200(16)
m_ucrdb   equ      00080(16)

.  Define constants for accessing processor state registers.

r_eid     equ      010(16)       .Element id
r_pid     equ      011(16)       .Processor id
r_pta     equ      048(16)       .Page table address.
r_ptl     equ      049(16)       .Page table length.
r_psm     equ      04a(16)       .Page size mask.
r_te      equ      0c2(16)       .Trap enable
r_td      equ      0c0(16)       .Trap disabled
r_ted     equ      0c3(16)       .Trap enable delay
r_cff_c   equ      0e0(16)       .Critical frame flag
r_jps     equ      061(16)       .Job Process State
r_sit     equ      062(16)       .System Interval Timer
r_pit     equ      0c9(16)       .Process interval timer.
r_stl     equ      045(16)       .Segment Table Length
r_mcr     equ      042(16)       .Monitor condition register
r_bc      equ      047(16)       .Base constant.
r_kef0    equ      0ca(16)       .Keypoint enable flag - clear.
r_kef1    equ      0cb(16)       .Keypoint enable flag - set.
r_di      equ      0e4(16)       .Debug index.
r_dmr     equ      0e5(16)       .Debug mask register.
r_um      equ      0e6(16)       .User mask.
r_mm      equ      060(16)       .Monitor mask.
r_tp      equ      0c4(16)       .trap pointer.
r_dlp     equ      0c5(16)       .Debug list pointer.
