2014-03-01 16:20:09 +00:00
|
|
|
|
2014-03-13 01:38:35 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; ATASCII CHARACTER DEFS
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ATCLR = $7D ;CLEAR SCREEN CHARACTER
|
|
|
|
ATRUB = $7E ;BACK SPACE (RUBOUT)
|
|
|
|
ATTAB = $7F ;TAB
|
|
|
|
ATEOL = $9B ;END-OF-LINE
|
|
|
|
ATDELL = $9C ;delete line
|
|
|
|
ATINSL = $9D ;insert line
|
|
|
|
ATCTAB = $9E ;clear TAB
|
|
|
|
ATSTAB = $9F ;set TAB
|
|
|
|
ATBEL = $FD ;CONSOLE BELL
|
|
|
|
ATDEL = $FE ;delete char.
|
|
|
|
ATINS = $FF ;insert char.
|
|
|
|
ATURW = $1C ;UP-ARROW
|
|
|
|
ATDRW = $1D ;DOWN-ARROW
|
|
|
|
ATLRW = $1E ;LEFT-ARROW
|
|
|
|
ATRRW = $1F ;RIGHT-ARROW
|
|
|
|
ATESC = $1B ;ESCAPE
|
|
|
|
|
|
|
|
|
2014-03-01 16:20:09 +00:00
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Zero Page
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
POKMSK = $00 ;Mask for Pokey IRQ enable
|
|
|
|
RTCLOK = $01 ;60 hz. clock
|
|
|
|
JUMP = $01
|
|
|
|
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-04-25 01:02:44 +00:00
|
|
|
; cc65 runtime zero page variables
|
2014-03-01 16:20:09 +00:00
|
|
|
|
2014-05-16 00:10:19 +00:00
|
|
|
ROWCRS_5200 = $19
|
|
|
|
COLCRS_5200 = $1A
|
2014-04-25 01:02:44 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; CTIA/GTIA Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
GTIA = $C000 ;CTIA/GTIA area
|
|
|
|
.include "_gtia.inc"
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; ANTIC Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
ANTIC = $D400 ;ANTIC area
|
|
|
|
.include "_antic.inc"
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; POKEY Address Equates
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
POKEY = $E800 ;POKEY area
|
|
|
|
.include "_pokey.inc"
|
|
|
|
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
; Cartridge Parameters
|
|
|
|
;-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
CARTNM = $BFE8 ;Cartridge Name Area
|
|
|
|
COPYD = $BFFC ;Copyright Decade in Cart
|
|
|
|
COPYR = $BFFD ;Copyright Year in Cart
|
|
|
|
; $FF=Diagnostic Cart
|
|
|
|
GOCART = $BFFE ;Cartridge Start Vector
|
|
|
|
|
|
|
|
|
|
|
|
CHRORG = $F800 ;Character Generator Base
|
|
|
|
|