]> git.sur5r.net Git - cc65/blob - asminc/vic20.inc
Use "override" when appending to CFLAGS, so this works even when CFLAGS is
[cc65] / asminc / 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 TIME            := $A0          ; 60HZ clock
12 FNAM_LEN        := $B7          ; Length of filename
13 SECADR          := $B9          ; Secondary address
14 DEVNUM          := $BA          ; Device number
15 FNAM            := $BB          ; Pointer to filename
16 KEY_COUNT       := $C6          ; Number of keys in input buffer
17 RVS             := $C7          ; Reverse flag
18 CURS_FLAG       := $CC          ; 1 = cursor off
19 CURS_BLINK      := $CD          ; Blink counter
20 CURS_CHAR       := $CE          ; Character under the cursor
21 CURS_STATE      := $CF          ; Cursor blink state
22 SCREEN_PTR      := $D1          ; Pointer to current char in text screen
23 CURS_X          := $D3          ; Cursor column
24 CURS_Y          := $D6          ; Cursor row
25 CRAM_PTR        := $F3          ; Pointer to current char in color RAM
26
27 BASIC_BUF       := $200         ; Location of command-line
28 BASIC_BUF_LEN   = 89            ; Maximum length of command-line
29
30 CHARCOLOR       := $286
31 CURS_COLOR      := $287         ; Color under the cursor
32
33
34 ; ---------------------------------------------------------------------------
35 ; Screen size
36
37 XSIZE           = 22
38 YSIZE           = 23
39
40 ; ---------------------------------------------------------------------------
41 ; Kernal routines
42
43 ; Direct entries
44 CLRSCR          := $E55F
45 KBDREAD         := $E5CF
46
47 ; ---------------------------------------------------------------------------
48 ; Vector and other locations
49
50 IRQVec          := $0314
51 BRKVec          := $0316
52 NMIVec          := $0318
53
54 ; ---------------------------------------------------------------------------
55 ; I/O: 6560 VIC
56
57 VIC             := $9000
58 VIC_LINES       := $9003        ; Screen lines, bit 7 is bit 0 from VIC_HLINE
59 VIC_HLINE       := $9004        ; Rasterline, bits 1-8
60 VIC_COLOR       := $900F        ; Border and background color
61
62 ; ---------------------------------------------------------------------------
63 ; I/O: 6522 VIA1
64
65 VIA1            := $9110
66 VIA1_JOY        := $9111
67 VIA1_DDRB       := $9112
68 VIA1_DDRA       := $9113
69
70 ; ---------------------------------------------------------------------------
71 ; I/O: 6522 VIA2
72
73 VIA2            := $9120
74 VIA2_JOY        := $9120
75 VIA2_DDRB       := $9122
76 VIA2_DDRA       := $9123
77