]> git.sur5r.net Git - cc65/blob - asminc/pet.inc
Improved longjmp() and setjmp().
[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 TXTPTR          := $77          ; Pointer into BASIC source code
11 TIME            := $8D          ; 60HZ clock
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 BASIC_BUF       := $200         ; Location of command-line
29 BASIC_BUF_LEN   = 81            ; Maximum length of command-line
30
31 KEY_BUF         := $26F         ; Keyboard buffer
32
33 ;----------------------------------------------------------------------------
34 ; PET ROM type detection
35
36 PET_DETECT      := $FFFB
37 PET_2000        = $CA
38 PET_3000        = $FC
39 PET_4000        = $FD
40
41
42 ;----------------------------------------------------------------------------
43 ; Vector and other locations
44
45 IRQVec          := $0090
46 BRKVec          := $0092
47 NMIVec          := $0094
48
49 ; ---------------------------------------------------------------------------
50 ; I/O: 6522 VIA2
51
52 VIA             := $E840
53 VIA_PRB         := $E840
54 VIA_PRA         := $E841
55 VIA_DDRB        := $E842
56 VIA_DDRA        := $E843
57
58