]> git.sur5r.net Git - cc65/blob - libsrc/pet/pet.inc
Oliver added a comment to the Apple2 linker config.
[cc65] / libsrc / pet / pet.inc
1 ;
2 ; C64 generic definitions. Stolen from Elite128
3 ;
4
5
6 ; ---------------------------------------------------------------------------
7 ; Zero page, Commodore stuff
8
9 MEMSIZE         = $34           ; Size of memory installed
10 TIME            = $8D           ; 60HZ clock
11 ST              = $96           ; IEC status byte
12 KEY_COUNT       = $9E           ; Number of keys in input buffer
13 RVS             = $9F           ; Reverse flag
14 CURS_FLAG       = $A7           ; 1 = cursor off
15 CURS_BLINK      = $A8           ; Blink counter
16 CURS_CHAR       = $A9           ; Character under the cursor
17 CURS_STATE      = $AA           ; Cursor blink state
18 SCREEN_PTR      = $C4           ; Pointer to current char in text screen
19 CURS_X          = $C6           ; Cursor column
20 FNLEN           = $D1           ; Length of filename
21 LFN             = $D2           ; Current Logical File Number
22 SECADR          = $D3           ; Secondary address
23 DEVNUM          = $D4           ; Device number
24 SCR_LINELEN     = $D5           ; Screen line length
25 CURS_Y          = $D8           ; Cursor row
26 FNADR           = $DA           ; Pointer to file name
27
28 KEY_BUF         = $26F          ; Keyboard buffer
29
30 ;----------------------------------------------------------------------------
31 ; PET ROM type detection
32
33 PET_DETECT      = $FFFB                       
34 PET_2000        = $CA
35 PET_3000        = $FC
36 PET_4000        = $FD
37
38
39 ;----------------------------------------------------------------------------
40 ; Vector and other locations
41
42 IRQVec          = $0090
43 BRKVec          = $0092
44 NMIVec          = $0094
45