]> git.sur5r.net Git - cc65/blob - libsrc/vic20/vic20.inc
New randomize() function for nearly all platforms
[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 CURS_FLAG       = $CC           ; 1 = cursor off
17 CURS_BLINK      = $CD           ; Blink counter
18 CURS_CHAR       = $CE           ; Character under the cursor
19 CURS_COLOR      = $287          ; Color 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 PALFLAG         = $2A6          ; $01 = PAL, $00 = NTSC
28
29
30 ; ---------------------------------------------------------------------------
31 ; Kernal routines
32
33 ; Direct entries
34 CLRSCR          = $E55F
35 KBDREAD         = $E5CF
36 NAMED_OPEN      = $F495
37 NAMED_CLOSE     = $F6DA
38 PLOTCHAR        = $EAAA         ; Char in A, color in X
39
40 ; ---------------------------------------------------------------------------
41 ; Vector and other locations
42
43 IRQVec          = $0314
44 BRKVec          = $0316
45 NMIVec          = $0318
46
47 ; ---------------------------------------------------------------------------
48 ; I/O: 6560 VIC
49
50 VIC             = $9000                               
51 VIC_LINES       = $9003         ; Screen lines, bit 7 is bit 0 from VIC_HLINE
52 VIC_HLINE       = $9004         ; Rasterline, bits 1-8
53 VIC_COLOR       = $900F         ; Border and background color
54
55 ; ---------------------------------------------------------------------------
56 ; I/O: 6522 VIA1
57
58 VIA1            = $9110
59 VIA1_JOY        = $9111
60 VIA1_DDRB       = $9112
61 VIA1_DDRA       = $9113
62
63 ; ---------------------------------------------------------------------------
64 ; I/O: 6522 VIA2
65
66 VIA2            = $9120
67 VIA2_JOY        = $9120
68 VIA2_DDRB       = $9122
69 VIA2_DDRA       = $9123
70