2014-05-28 22:42:30 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Atari 5200 System Equates
|
|
|
|
; by Christian Groessler <chris@groessler.org>
|
|
|
|
; taken from EQUATES.INC from Atari Inc.
|
|
|
|
;-------------------------------------------------------------------------
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2014-03-13 01:38:35 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; ATASCII CHARACTER DEFS
|
|
|
|
;-------------------------------------------------------------------------
|
2014-05-28 22:42:30 +00:00
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
ATEOL = $9B ; END-OF-LINE, used by CONIO
|
2014-03-13 01:38:35 +00:00
|
|
|
|
2019-04-02 19:11:11 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; CONIO CHARACTER DEFS
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
CH_ULCORNER = $0B ; '+' sign
|
|
|
|
CH_URCORNER = $0B
|
|
|
|
CH_LLCORNER = $0B
|
|
|
|
CH_LRCORNER = $0B
|
|
|
|
CH_HLINE = $0D ; dash
|
|
|
|
CH_VLINE = $01 ; exclamation mark
|
2014-03-13 01:38:35 +00:00
|
|
|
|
2014-03-01 16:20:09 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Zero Page
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
POKMSK = $00 ; Mask for Pokey IRQ enable
|
|
|
|
RTCLOK = $01 ; 60 hz. clock
|
2014-03-01 16:20:09 +00:00
|
|
|
JUMP = $01
|
2017-08-02 21:56:52 +00:00
|
|
|
CRITIC = $03 ; Critical section
|
|
|
|
ATRACT = $04 ; Attract Mode
|
|
|
|
|
|
|
|
SDLSTL = $05 ; DLISTL Shadow
|
|
|
|
SDLSTH = $06 ; DLISTH "
|
|
|
|
SDMCTL = $07 ; DMACTL "
|
|
|
|
|
|
|
|
PCOLR0 = $08 ; COLPM0 Shadow
|
|
|
|
PCOLR1 = $09 ; COLPM1 "
|
|
|
|
PCOLR2 = $0A ; COLPM2 "
|
|
|
|
PCOLR3 = $0B ; COLPM3 "
|
|
|
|
|
|
|
|
COLOR0 = $0C ; COLPF0 Shadow
|
|
|
|
COLOR1 = $0D ; COLPF1 "
|
|
|
|
COLOR2 = $0E ; COLPF2 "
|
|
|
|
COLOR3 = $0F ; COLPF3 "
|
|
|
|
COLOR4 = $10 ; COLBK "
|
|
|
|
|
|
|
|
PADDL0 = $11 ; POT0 Shadow
|
|
|
|
PADDL1 = $12 ; POT1 "
|
|
|
|
PADDL2 = $13 ; POT2 "
|
|
|
|
PADDL3 = $14 ; POT3 "
|
|
|
|
PADDL4 = $15 ; POT4 "
|
|
|
|
PADDL5 = $16 ; POT5 "
|
|
|
|
PADDL6 = $17 ; POT6 "
|
|
|
|
PADDL7 = $18 ; POT7 "
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2014-04-25 01:02:44 +00:00
|
|
|
; cc65 runtime zero page variables
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2014-05-28 22:42:30 +00:00
|
|
|
ROWCRS_5200 = $19
|
|
|
|
COLCRS_5200 = $1A
|
|
|
|
SAVMSC = $1B ; pointer to screen memory (conio)
|
2014-03-13 01:38:35 +00:00
|
|
|
|
2014-03-01 16:20:09 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Page #2
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
;Interrupt Vectors
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
VIMIRQ = $0200 ; Immediate IRQ
|
|
|
|
; Preset $FC03 (SYSIRQ)
|
|
|
|
VVBLKI = $0202 ; Vblank immediate
|
|
|
|
; Preset $FCB8 (SYSVBL)
|
|
|
|
VVBLKD = $0204 ; Vblank deferred
|
|
|
|
; Preset $FCB2 (XITVBL)
|
|
|
|
VDSLST = $0206 ; Display List
|
|
|
|
; Preset $FEA1 (OSDLI)
|
|
|
|
VKYBDI = $0208 ; Keyboard immediate
|
|
|
|
; Preset $FD02 (SYSKBD)
|
|
|
|
VKYBDF = $020A ; Deferred Keyboard
|
|
|
|
; Preset $FCB2 (XITVBL)
|
|
|
|
VTRIGR = $020C ; Soft Trigger
|
|
|
|
VBRKOP = $020E ; BRK Opcode
|
|
|
|
VSERIN = $0210 ; Serial in Ready
|
|
|
|
VSEROR = $0212 ; Serial Out Ready
|
|
|
|
VSEROC = $0214 ; Serial Output complete
|
|
|
|
VTIMR1 = $0216 ; Pokey Timer 1
|
|
|
|
VTIMR2 = $0218 ; Pokey Timer 2
|
|
|
|
VTIMR4 = $021A ; Pokey Timer 4
|
2014-03-01 16:20:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; CTIA/GTIA Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
GTIA = $C000 ; CTIA/GTIA area
|
2014-05-30 20:00:18 +00:00
|
|
|
.include "atari_gtia.inc"
|
2014-03-01 16:20:09 +00:00
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; ANTIC Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
ANTIC = $D400 ; ANTIC area
|
2014-05-30 20:00:18 +00:00
|
|
|
.include "atari_antic.inc"
|
2014-03-01 16:20:09 +00:00
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; POKEY Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
POKEY = $E800 ; POKEY area
|
2014-05-30 20:00:18 +00:00
|
|
|
.include "atari_pokey.inc"
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2019-04-04 23:26:34 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; conio color defines
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2019-04-10 20:20:01 +00:00
|
|
|
COLOR_WHITE = 0
|
|
|
|
COLOR_RED = 1
|
|
|
|
COLOR_GREEN = 2
|
|
|
|
COLOR_BLACK = 3
|
2014-03-01 16:20:09 +00:00
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Cartridge Parameters
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
CARTNM = $BFE8 ; Cartridge Name Area
|
|
|
|
COPYD = $BFFC ; Copyright Decade in Cart
|
|
|
|
COPYR = $BFFD ; Copyright Year in Cart
|
2014-03-01 16:20:09 +00:00
|
|
|
; $FF=Diagnostic Cart
|
2017-08-02 21:56:52 +00:00
|
|
|
GOCART = $BFFE ; Cartridge Start Vector
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2017-08-02 21:56:52 +00:00
|
|
|
CHRORG = $F800 ; Character Generator Base
|