]> git.sur5r.net Git - cc65/blob - libsrc/vic20/vic20.inc
support for arguments (with DeskTop drag&drop feature)
[cc65] / libsrc / vic20 / 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 KEY_COUNT       = $C6           ; Number of keys in input buffer
16 RVS             = $C7           ; Reverse flag
17 CURS_FLAG       = $CC           ; 1 = cursor off
18 CURS_BLINK      = $CD           ; Blink counter
19 CURS_CHAR       = $CE           ; Character under the cursor
20 CURS_STATE      = $CF           ; Cursor blink state
21 SCREEN_PTR      = $D1           ; Pointer to current char in text screen
22 CURS_X          = $D3           ; Cursor column
23 CURS_Y          = $D6           ; Cursor row
24 CRAM_PTR        = $F3           ; Pointer to current char in color RAM
25
26 CHARCOLOR       = $286
27 CURS_COLOR      = $287          ; Color under the cursor
28 PALFLAG         = $2A6          ; $01 = PAL, $00 = NTSC
29
30
31 ; ---------------------------------------------------------------------------
32 ; Screen size
33
34 XSIZE           = 22
35 YSIZE           = 23                    
36
37 ; ---------------------------------------------------------------------------
38 ; Kernal routines
39
40 ; Direct entries
41 CLRSCR          = $E55F
42 KBDREAD         = $E5CF
43
44 ; ---------------------------------------------------------------------------
45 ; Vector and other locations
46
47 IRQVec          = $0314
48 BRKVec          = $0316
49 NMIVec          = $0318
50
51 ; ---------------------------------------------------------------------------
52 ; I/O: 6560 VIC
53
54 VIC             = $9000
55 VIC_LINES       = $9003         ; Screen lines, bit 7 is bit 0 from VIC_HLINE
56 VIC_HLINE       = $9004         ; Rasterline, bits 1-8
57 VIC_COLOR       = $900F         ; Border and background color
58
59 ; ---------------------------------------------------------------------------
60 ; I/O: 6522 VIA1
61
62 VIA1            = $9110
63 VIA1_JOY        = $9111
64 VIA1_DDRB       = $9112
65 VIA1_DDRA       = $9113
66
67 ; ---------------------------------------------------------------------------
68 ; I/O: 6522 VIA2
69
70 VIA2            = $9120
71 VIA2_JOY        = $9120
72 VIA2_DDRB       = $9122
73 VIA2_DDRA       = $9123
74