]> git.sur5r.net Git - cc65/blobdiff - asminc/c64.inc
Fixed _textcolor definition.
[cc65] / asminc / c64.inc
index f450fcc0b4386be060980e26f906e8a9f4172f81..1d10f673d34f7fe496cd9cb1ed26c8c93810e0e0 100644 (file)
@@ -6,6 +6,8 @@
 ; ---------------------------------------------------------------------------
 ; Zero page, Commodore stuff
 
+VARTAB          := $2D          ; Pointer to start of BASIC variables
+MEMSIZE         := $37          ; Pointer to highest BASIC RAM location (+1)
 TXTPTR          := $7A          ; Pointer into BASIC source code
 TIME            := $A0          ; 60 HZ clock
 FNAM_LEN        := $B7          ; Length of filename
@@ -22,6 +24,7 @@ SCREEN_PTR      := $D1          ; Pointer to current char in text screen
 CURS_X          := $D3          ; Cursor column
 CURS_Y          := $D6          ; Cursor row
 CRAM_PTR        := $F3          ; Pointer to current char in color RAM
+FREKZP          := $FB          ; Five unused bytes
 
 BASIC_BUF       := $200         ; Location of command-line
 BASIC_BUF_LEN   = 89            ; Maximum length of command-line
@@ -30,14 +33,9 @@ CHARCOLOR       := $286
 CURS_COLOR      := $287         ; Color under the cursor
 PALFLAG         := $2A6         ; $01 = PAL, $00 = NTSC
 
-
-; ---------------------------------------------------------------------------
-; Kernal routines
-
-; Direct entries
-CLRSCR          := $E544
-KBDREAD         := $E5B4
-NMIEXIT         := $FEBC
+KBDREPEAT       := $28a
+KBDREPEATRATE   := $28b
+KBDREPEATDELAY  := $28c
 
 ; ---------------------------------------------------------------------------
 ; Vector and other locations
@@ -159,30 +157,36 @@ VDC_INDEX       := $D600
 VDC_DATA        := $D601
 
 ; ---------------------------------------------------------------------------
-; I/O: CIAs
+; I/O: Complex Interface Adapters
 
 CIA1            := $DC00
-CIA1_PRA        := $DC00
-CIA1_PRB        := $DC01
-CIA1_DDRA       := $DC02
-CIA1_DDRB       := $DC03
-CIA1_TOD10      := $DC08
-CIA1_TODSEC     := $DC09
-CIA1_TODMIN     := $DC0A
-CIA1_TODHR      := $DC0B
-CIA1_ICR        := $DC0D
-CIA1_CRA        := $DC0E
-CIA1_CRB        := $DC0F
+CIA1_PRA        := $DC00        ; Port A
+CIA1_PRB        := $DC01        ; Port B
+CIA1_DDRA       := $DC02        ; Data direction register for port A
+CIA1_DDRB       := $DC03        ; Data direction register for port B
+CIA1_TA         := $DC04        ; 16-bit timer A
+CIA1_TB         := $DC06        ; 16-bit timer B
+CIA1_TOD10      := $DC08        ; Time-of-day tenths of a second
+CIA1_TODSEC     := $DC09        ; Time-of-day seconds
+CIA1_TODMIN     := $DC0A        ; Time-of-day minutes
+CIA1_TODHR      := $DC0B        ; Time-of-day hours
+CIA1_SDR        := $DC0C        ; Serial data register
+CIA1_ICR        := $DC0D        ; Interrupt control register
+CIA1_CRA        := $DC0E        ; Control register for timer A
+CIA1_CRB        := $DC0F        ; Control register for timer B
 
 CIA2            := $DD00
 CIA2_PRA        := $DD00
 CIA2_PRB        := $DD01
 CIA2_DDRA       := $DD02
 CIA2_DDRB       := $DD03
+CIA2_TA         := $DD04
+CIA2_TB         := $DD06
 CIA2_TOD10      := $DD08
 CIA2_TODSEC     := $DD09
 CIA2_TODMIN     := $DD0A
 CIA2_TODHR      := $DD0B
+CIA2_SDR        := $DD0C
 CIA2_ICR        := $DD0D
 CIA2_CRA        := $DD0E
 CIA2_CRB        := $DD0F
@@ -210,4 +214,3 @@ CASSMOT         = $20           ; Cassette motor on
 TP_FAST         = $80           ; Switch Rossmoeller TurboProcess to fast mode
 
 RAMONLY         = $F8           ; (~(LORAM | HIRAM | IOEN)) & $FF
-