2 ; Vic20 generic definitions. Stolen mostly from c64.inc - Steve Schmidtke
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
9 ST := $90 ; IEC status byte
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
27 BASIC_BUF := $200 ; Location of command-line
28 BASIC_BUF_LEN = 89 ; Maximum length of command-line
31 CURS_COLOR := $287 ; Color under the cursor
34 ; ---------------------------------------------------------------------------
40 ; ---------------------------------------------------------------------------
47 ; ---------------------------------------------------------------------------
48 ; Vector and other locations
54 ; ---------------------------------------------------------------------------
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
62 ; ---------------------------------------------------------------------------
70 ; ---------------------------------------------------------------------------