2 ; Vic20 generic definitions. Stolen mostly from c64.inc - Steve Schmidtke
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
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
28 BASIC_BUF := $200 ; Location of command-line
29 BASIC_BUF_LEN = 89 ; Maximum length of command-line
32 CURS_COLOR := $287 ; Color under the cursor
35 ; ---------------------------------------------------------------------------
41 ; ---------------------------------------------------------------------------
48 ; ---------------------------------------------------------------------------
49 ; Vector and other locations
55 ; ---------------------------------------------------------------------------
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
63 ; ---------------------------------------------------------------------------
71 ; ---------------------------------------------------------------------------