]> git.sur5r.net Git - cc65/blob - asminc/vic20.inc
Turned the 'ST' status byte into a symbol resolved by the linker in order to allow...
[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 TIME            := $A0          ; 60HZ clock
10 FNAM_LEN        := $B7          ; Length of filename
11 SECADR          := $B9          ; Secondary address
12 DEVNUM          := $BA          ; Device number
13 FNAM            := $BB          ; Pointer to filename
14 KEY_COUNT       := $C6          ; Number of keys in input buffer
15 RVS             := $C7          ; Reverse flag
16 CURS_FLAG       := $CC          ; 1 = cursor off
17 CURS_BLINK      := $CD          ; Blink counter
18 CURS_CHAR       := $CE          ; Character 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 BASIC_BUF       := $200         ; Location of command-line
26 BASIC_BUF_LEN   = 89            ; Maximum length of command-line
27
28 CHARCOLOR       := $286
29 CURS_COLOR      := $287         ; Color under the cursor
30
31
32 ; ---------------------------------------------------------------------------
33 ; Screen size
34
35 XSIZE           = 22
36 YSIZE           = 23
37
38 ; ---------------------------------------------------------------------------
39 ; Kernal routines
40
41 ; Direct entries
42 CLRSCR          := $E55F
43 KBDREAD         := $E5CF
44
45 ; ---------------------------------------------------------------------------
46 ; Vector and other locations
47
48 IRQVec          := $0314
49 BRKVec          := $0316
50 NMIVec          := $0318
51
52 ; ---------------------------------------------------------------------------
53 ; I/O: 6560 VIC
54
55 VIC             := $9000
56 VIC_LINES       := $9003        ; Screen lines, bit 7 is bit 0 from VIC_HLINE
57 VIC_HLINE       := $9004        ; Rasterline, bits 1-8
58 VIC_COLOR       := $900F        ; Border and background color
59
60 ; ---------------------------------------------------------------------------
61 ; I/O: 6522 VIA1
62
63 VIA1            := $9110
64 VIA1_JOY        := $9111
65 VIA1_DDRB       := $9112
66 VIA1_DDRA       := $9113
67
68 ; ---------------------------------------------------------------------------
69 ; I/O: 6522 VIA2
70
71 VIA2            := $9120
72 VIA2_JOY        := $9120
73 VIA2_DDRB       := $9122
74 VIA2_DDRA       := $9123
75