]> git.sur5r.net Git - cc65/blob - asminc/atari5200.inc
Merge pull request #7 from cvemu/master
[cc65] / asminc / atari5200.inc
1 ;-------------------------------------------------------------------------
2 ; Atari 5200 System Equates
3 ; by Christian Groessler <chris@groessler.org>
4 ; taken from EQUATES.INC from Atari Inc.
5 ;-------------------------------------------------------------------------
6
7 ;-------------------------------------------------------------------------
8 ; ATASCII CHARACTER DEFS
9 ;-------------------------------------------------------------------------
10  
11 ATEOL   = $9B           ;END-OF-LINE, used by CONIO
12
13
14 ;-------------------------------------------------------------------------
15 ; Zero Page
16 ;-------------------------------------------------------------------------
17
18 POKMSK  =  $00   ;Mask for Pokey IRQ enable
19 RTCLOK  =  $01   ;60 hz. clock
20 JUMP    =  $01   
21 CRITIC  =  $03   ;Critical section
22 ATRACT  =  $04   ;Attract Mode 
23
24 SDLSTL  =  $05   ;DLISTL Shadow
25 SDLSTH  =  $06   ;DLISTH  "
26 SDMCTL  =  $07   ;DMACTL  "
27
28 PCOLR0  =  $08   ;COLPM0 Shadow
29 PCOLR1  =  $09   ;COLPM1  "
30 PCOLR2  =  $0A   ;COLPM2  "
31 PCOLR3  =  $0B   ;COLPM3  "
32
33 COLOR0  =  $0C   ;COLPF0 Shadow
34 COLOR1  =  $0D   ;COLPF1  "
35 COLOR2  =  $0E   ;COLPF2  "
36 COLOR3  =  $0F   ;COLPF3  "
37 COLOR4  =  $10   ;COLBK   "
38
39 PADDL0  =  $11   ;POT0 Shadow
40 PADDL1  =  $12   ;POT1  "
41 PADDL2  =  $13   ;POT2  "
42 PADDL3  =  $14   ;POT3  "
43 PADDL4  =  $15   ;POT4  "
44 PADDL5  =  $16   ;POT5  "
45 PADDL6  =  $17   ;POT6  "
46 PADDL7  =  $18   ;POT7  "
47
48 ; cc65 runtime zero page variables
49
50 ROWCRS_5200     =       $19
51 COLCRS_5200     =       $1A
52 SAVMSC          =       $1B             ; pointer to screen memory (conio)
53
54 ;-------------------------------------------------------------------------
55 ; Page #2
56 ;-------------------------------------------------------------------------
57
58 ;Interrupt Vectors
59                  
60 VIMIRQ  =  $0200   ;Immediate IRQ    
61                       ;Preset $FC03 (SYSIRQ)
62 VVBLKI  =  $0202   ;Vblank immediate
63                       ;Preset $FCB8 (SYSVBL)
64 VVBLKD  =  $0204   ;Vblank deferred
65                       ;Preset $FCB2 (XITVBL)
66 VDSLST  =  $0206   ;Display List 
67                       ;Preset $FEA1 (OSDLI)
68 VKYBDI  =  $0208   ;Keyboard immediate
69                       ;Preset $FD02 (SYSKBD)
70 VKYBDF  =  $020A   ;Deferred Keyboard
71                       ;Preset $FCB2 (XITVBL)
72 VTRIGR  =  $020C   ;Soft Trigger   
73 VBRKOP  =  $020E   ;BRK Opcode
74 VSERIN  =  $0210   ;Serial in Ready
75 VSEROR  =  $0212   ;Serial Out Ready
76 VSEROC  =  $0214   ;Serial Output complete
77 VTIMR1  =  $0216   ;Pokey Timer 1
78 VTIMR2  =  $0218   ;Pokey Timer 2
79 VTIMR4  =  $021A   ;Pokey Timer 4
80
81
82
83 ;-------------------------------------------------------------------------
84 ; CTIA/GTIA Address Equates
85 ;-------------------------------------------------------------------------
86
87 GTIA    = $C000         ;CTIA/GTIA area
88 .include "atari_gtia.inc"
89
90 ;-------------------------------------------------------------------------
91 ; ANTIC Address Equates
92 ;-------------------------------------------------------------------------
93
94 ANTIC     = $D400         ;ANTIC area
95 .include  "atari_antic.inc"
96
97 ;-------------------------------------------------------------------------
98 ; POKEY Address Equates
99 ;-------------------------------------------------------------------------
100
101 POKEY     = $E800         ;POKEY area
102 .include  "atari_pokey.inc"
103
104
105 ;-------------------------------------------------------------------------
106 ; Cartridge Parameters
107 ;-------------------------------------------------------------------------
108
109 CARTNM  =  $BFE8   ;Cartridge Name Area
110 COPYD   =  $BFFC   ;Copyright Decade in Cart
111 COPYR   =  $BFFD   ;Copyright Year in Cart
112                       ; $FF=Diagnostic Cart
113 GOCART  =  $BFFE   ;Cartridge Start Vector
114
115
116 CHRORG  =  $F800   ;Character Generator Base