]> git.sur5r.net Git - cc65/blob - libsrc/vic20/vic20.inc
56bf0ec14dd75880bcc5ec4570d21b25554b5d86
[cc65] / libsrc / vic20 / vic20.inc
1 ;
2 ; Vic20 generic definitions. Stolen mostly from c64.inc - Steve Schmidtke
3 ;
4
5
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
8
9 ST              = $90           ; IEC status byte
10
11 FNAM_LEN        = $B7           ; Length of filename
12 SECADR          = $B9           ; Secondary address
13 DEVNUM          = $BA           ; Device number
14 KEY_COUNT       = $C6           ; Number of keys in input buffer
15 CURS_FLAG       = $CC           ; 1 = cursor off
16 CURS_BLINK      = $CD           ; Blink counter
17 CURS_CHAR       = $CE           ; Character under the cursor
18 CURS_COLOR      = $287          ; Color under the cursor
19 CURS_STATE      = $CF           ; Cursor blink state
20 SCREEN_PTR      = $D1           ; Pointer to current char in text screen
21 CURS_X          = $D3           ; Cursor column
22 CURS_Y          = $D6           ; Cursor row
23 CRAM_PTR        = $F3           ; Pointer to current char in color RAM
24
25 CHARCOLOR       = $286
26 PALFLAG         = $2A6          ; $01 = PAL, $00 = NTSC
27
28
29 ; ---------------------------------------------------------------------------
30 ; Kernal routines
31
32 ; Direct entries
33 CLRSCR          = $E55F         
34 KBDREAD         = $E5CF         
35 NAMED_OPEN      = $F495
36 NAMED_CLOSE     = $F6DA         
37 PLOTCHAR        = $EAAA         ; Char in A, color in X
38
39 ; ---------------------------------------------------------------------------
40 ; Vector and other locations
41
42 IRQVec          = $0314
43 BRKVec          = $0316
44 NMIVec          = $0318
45
46 ; ---------------------------------------------------------------------------
47 ; I/O: 6560 VIC
48
49 VIC             = $9000
50 VIC_COLOR       = $900F
51
52 ; ---------------------------------------------------------------------------
53 ; I/O: 6522 VIA1
54
55 VIA1            = $9110
56 VIA1_JOY        = $9111
57 VIA1_DDRB       = $9112
58 VIA1_DDRA       = $9113
59
60 ; ---------------------------------------------------------------------------
61 ; I/O: 6522 VIA2
62
63 VIA2            = $9120
64 VIA2_JOY        = $9120
65 VIA2_DDRB       = $9122
66 VIA2_DDRA       = $9123
67