1 ;-------------------------------------------------------------------------
2 ; CTIA/GTIA Address Equates
3 ;-------------------------------------------------------------------------
7 CONSOL = GTIA + $1F ;console switches and speaker control
11 M0PF = GTIA + $00 ;missile 0 and playfield collision
12 M1PF = GTIA + $01 ;missile 1 and playfield collision
13 M2PF = GTIA + $02 ;missile 2 and playfield collision
14 M3PF = GTIA + $03 ;missile 3 and playfield collision
16 P0PF = GTIA + $04 ;player 0 and playfield collision
17 P1PF = GTIA + $05 ;player 1 and playfield collision
18 P2PF = GTIA + $06 ;player 2 and playfield collision
19 P3PF = GTIA + $07 ;player 3 and playfield collision
21 M0PL = GTIA + $08 ;missile 0 and player collision
22 M1PL = GTIA + $09 ;missile 1 and player collision
23 M2PL = GTIA + $0A ;missile 2 and player collision
24 M3PL = GTIA + $0B ;missile 3 and player collision
26 P0PL = GTIA + $0C ;player 0 and player collision
27 P1PL = GTIA + $0D ;player 1 and player collision
28 P2PL = GTIA + $0E ;player 2 and player collision
29 P3PL = GTIA + $0F ;player 3 and player collision
31 TRIG0 = GTIA + $10 ;joystick trigger 0
32 TRIG1 = GTIA + $11 ;joystick trigger 1
34 TRIG2 = GTIA + $12 ;cartridge interlock
35 TRIG3 = GTIA + $13 ;ACMI module interlock
37 PAL = GTIA + $14 ;##rev2## PAL/NTSC indicator
41 HPOSP0 = GTIA + $00 ;player 0 horizontal position
42 HPOSP1 = GTIA + $01 ;player 1 horizontal position
43 HPOSP2 = GTIA + $02 ;player 2 horizontal position
44 HPOSP3 = GTIA + $03 ;player 3 horizontal position
46 HPOSM0 = GTIA + $04 ;missile 0 horizontal position
47 HPOSM1 = GTIA + $05 ;missile 1 horizontal position
48 HPOSM2 = GTIA + $06 ;missile 2 horizontal position
49 HPOSM3 = GTIA + $07 ;missile 3 horizontal position
51 SIZEP0 = GTIA + $08 ;player 0 size
52 SIZEP1 = GTIA + $09 ;player 1 size
53 SIZEP2 = GTIA + $0A ;player 2 size
54 SIZEP3 = GTIA + $0B ;player 3 size
56 SIZEM = GTIA + $0C ;missile sizes
58 GRAFP0 = GTIA + $0D ;player 0 graphics
59 GRAFP1 = GTIA + $0E ;player 1 graphics
60 GRAFP2 = GTIA + $0F ;player 2 graphics
61 GRAFP3 = GTIA + $10 ;player 3 graphics
63 GRAFM = GTIA + $11 ;missile graphics
65 COLPM0 = GTIA + $12 ;player-missile 0 color/luminance
66 COLPM1 = GTIA + $13 ;player-missile 1 color/luminance
67 COLPM2 = GTIA + $14 ;player-missile 2 color/luminance
68 COLPM3 = GTIA + $15 ;player-missile 3 color/luminance
70 COLPF0 = GTIA + $16 ;playfield 0 color/luminance
71 COLPF1 = GTIA + $17 ;playfield 1 color/luminance
72 COLPF2 = GTIA + $18 ;playfield 2 color/luminance
73 COLPF3 = GTIA + $19 ;playfield 3 color/luminance
75 COLBK = GTIA + $1A ;background color/luminance
77 PRIOR = GTIA + $1B ;priority select
78 VDELAY = GTIA + $1C ;vertical delay
79 GRACTL = GTIA + $1D ;graphic control
80 HITCLR = GTIA + $1E ;collision clear