
; DLIST
emp1 equ $00
emp2 equ $10
emp3 equ $20
emp4 equ $30
emp5 equ $40
emp6 equ $50
emp7 equ $60
emp8 equ $70
txt2 equ 2
txt3 equ 3
txt4 equ 4
txt5 equ 5
txt6 equ 6
txt7 equ 7
gfx8 equ 8
gfx9 equ 9
gfxa equ $a
gfxb equ $b
gfxc equ $c
gfxd equ $d
gfxe equ $e
gfxf equ $f
jvb equ $41
dli equ $80
lms equ $40
vscrl equ $20
hscrl equ $10

os0 equ txt2
os1 equ txt6
os2 equ txt7
os3 equ gfx8
os4 equ gfx9
os5 equ gfxa
os6 equ gfxb
os7 equ gfxd
os8 equ gfxf
os9 equ gfxf    ;MODE_LUM
os10 equ gfxf   ;MODE_COLOR
os11 equ gfxf   ;MODE_CHROM
os12 equ txt4
os13 equ txt5
os14 equ gfxc
os15 equ gfxe

; KEYS
EOL equ $9b

; DMACTL
SCR_NONE    equ %00
SCR_NARROW  equ %01
SCR_NORMAL  equ %10
SCR_BROAD   equ %11
DMA_PLAYER  equ %100
DMA_MISSILE equ %1000
PMG_RES     equ %10000
DMA_ANTIC   equ %100000

; GTICTL
PMG_PRIO1   equ %0001 ;PM0123PF0123BAK
PMG_PRIO2   equ %0010 ;PM01PF0123PM23BAK
PMG_PRIO3   equ %0100 ;PF0123PM0123BAK
PMG_PRIO4   equ %1000 ;PF01PM0123PF23BAK
PMG_PLAYER5 equ %10000
PMG_MULTI   equ %100000
MODE_LUM    equ %01000000
MODE_CHROM  equ %10000000
MODE_COLOR  equ %11000000

; PMGCTL
PMG_MISSILE equ %01
PMG_PLAYER  equ %10
TRIG_LATCH  equ %100

; SIZEPM
SIZE_NORMAL equ %00
SIZE_DOUBLE equ %01
SIZE_QUAD   equ %11

; NMIEN
NMI_DLI  equ %10000000
NMI_VBLK equ %01000000

; KBCODE
KEY_NONE equ $ff

; IOCB
IO_READ equ 4
IO_WRITE equ 8
CMD_OPEN equ 3
CMD_PUTBYTE equ 11
CMD_CLOSE equ 12
CMD_GETBYTE equ 7

; SKSTAT
SK_XFER equ %10
SK_KEY equ %100
SK_SHIFT equ %1000
SK_SERIN equ %10000
SK_KEYBUF equ %100000
SK_SERBUF equ %1000000
SK_FRAMERR equ %10000000


casini equ 2
bootflag equ 9
dosvec equ $a
dosini equ $c

irqens equ $10
irqstats equ $11
rtclk equ $12
keydef equ $79

dliv equ $200
vbblki equ $222
vbblkd equ $224
dmactls equ $22f
dlptrs equ $230
gtictls equ $26f
jstick0 equ $278
jstick1 equ $279
trig0s equ $284
trig1s equ $285

colpm0s equ $2c0
colpm1s equ $2c1
colpm2s equ $2c2
colpm3s equ $2c3
colpf0s equ $2c4
colpf1s equ $2c5
colpf2s equ $2c6
colpf3s equ $2c7
colbaks equ $2c8
krpdel equ $2d9
keyrep equ $2da
chact equ $2f3
chbas equ $2f4
kbcodes equ $2fc

runad equ $2e0
iniad equ $2e2

iccmd equ $342
icbufa equ $344
icbufl equ $348
icaux1 equ $34a
icaux2 equ $34b

hposp0 equ $d000
hposp1 equ $d001
hposp2 equ $d002
hposp3 equ $d003
hposm0 equ $d004
hposm1 equ $d005
hposm2 equ $d006
hposm3 equ $d007
sizep0 equ $d008
sizep1 equ $d009
sizep2 equ $d00a
sizep3 equ $d00b
sizem equ $d00c
colpm0 equ $d012
colpm1 equ $d013
colpm2 equ $d014
colpm3 equ $d015
colpf0 equ $d016
colpf1 equ $d017
colpf2 equ $d018
colpf3 equ $d019
colbak equ $d01a
gtiactl equ $d01b
pmgctl equ $d01d
consol equ $d01f

irqen equ $d20e
irqst equ $d20e
skctl equ $d20f
skstat equ $d20f

dmactl equ $d400
chactl equ $d401
dlptr equ $d402
hscrol equ $d405
vscrol equ $d405
pmbase equ $d407
chbase equ $d409
wsync equ $d40a
vcount equ $d40b
nmien equ $d40e
nmist equ $d40f
nmires equ $d40f

ciov equ $e456
bell equ $f556


