]> git.sur5r.net Git - cc65/blob - asminc/pet.inc
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / asminc / pet.inc
1 ;
2 ; PET generic definitions.
3 ;
4
5
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
8
9 MEMSIZE         := $34          ; Size of memory installed
10 TIME            := $8D          ; 60HZ clock
11 KEY_COUNT       := $9E          ; Number of keys in input buffer
12 RVS             := $9F          ; Reverse flag
13 CURS_FLAG       := $A7          ; 1 = cursor off
14 CURS_BLINK      := $A8          ; Blink counter
15 CURS_CHAR       := $A9          ; Character under the cursor
16 CURS_STATE      := $AA          ; Cursor blink state
17 SCREEN_PTR      := $C4          ; Pointer to current char in text screen
18 CURS_X          := $C6          ; Cursor column
19 FNLEN           := $D1          ; Length of filename
20 LFN             := $D2          ; Current Logical File Number
21 SECADR          := $D3          ; Secondary address
22 DEVNUM          := $D4          ; Device number
23 SCR_LINELEN     := $D5          ; Screen line length
24 CURS_Y          := $D8          ; Cursor row
25 FNADR           := $DA          ; Pointer to file name
26
27 KEY_BUF         := $26F         ; Keyboard buffer
28
29 ;----------------------------------------------------------------------------
30 ; PET ROM type detection
31
32 PET_DETECT      := $FFFB
33 PET_2000        = $CA
34 PET_3000        = $FC
35 PET_4000        = $FD
36
37
38 ;----------------------------------------------------------------------------
39 ; Vector and other locations
40
41 IRQVec          := $0090
42 BRKVec          := $0092
43 NMIVec          := $0094
44
45 ; ---------------------------------------------------------------------------
46 ; I/O: 6522 VIA2
47
48 VIA             := $E840
49 VIA_PRB         := $E840
50 VIA_PRA         := $E841
51 VIA_DDRB        := $E842
52 VIA_DDRA        := $E843
53
54