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