2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; C64 generic definitions. Stolen from Elite128
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Zero page, Commodore stuff
|
|
|
|
|
2002-11-19 23:02:47 +00:00
|
|
|
MEMSIZE = $34 ; Size of memory installed
|
2002-11-05 10:48:20 +00:00
|
|
|
TIME = $8D ; 60HZ clock
|
2000-05-28 13:40:48 +00:00
|
|
|
ST = $96 ; IEC status byte
|
|
|
|
KEY_COUNT = $9E ; Number of keys in input buffer
|
2002-12-19 20:29:27 +00:00
|
|
|
RVS = $9F ; Reverse flag
|
2000-05-28 13:40:48 +00:00
|
|
|
CURS_FLAG = $A7 ; 1 = cursor off
|
|
|
|
CURS_BLINK = $A8 ; Blink counter
|
|
|
|
CURS_CHAR = $A9 ; Character under the cursor
|
|
|
|
CURS_STATE = $AA ; Cursor blink state
|
|
|
|
SCREEN_PTR = $C4 ; Pointer to current char in text screen
|
|
|
|
CURS_X = $C6 ; Cursor column
|
2002-11-19 23:02:47 +00:00
|
|
|
FNLEN = $D1 ; Length of filename
|
|
|
|
LFN = $D2 ; Current Logical File Number
|
|
|
|
SECADR = $D3 ; Secondary address
|
|
|
|
DEVNUM = $D4 ; Device number
|
2000-05-28 13:40:48 +00:00
|
|
|
SCR_LINELEN = $D5 ; Screen line length
|
2002-11-19 23:02:47 +00:00
|
|
|
CURS_Y = $D8 ; Cursor row
|
|
|
|
FNADR = $DA ; Pointer to file name
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
KEY_BUF = $26F ; Keyboard buffer
|
|
|
|
|
2002-11-20 01:31:56 +00:00
|
|
|
;----------------------------------------------------------------------------
|
|
|
|
; PET ROM type detection
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2002-12-19 20:29:27 +00:00
|
|
|
PET_DETECT = $FFFB
|
2002-11-20 01:31:56 +00:00
|
|
|
PET_2000 = $CA
|
|
|
|
PET_3000 = $FC
|
|
|
|
PET_4000 = $FD
|
|
|
|
|
|
|
|
|
|
|
|
;----------------------------------------------------------------------------
|
2000-05-28 13:40:48 +00:00
|
|
|
; Vector and other locations
|
|
|
|
|
|
|
|
IRQVec = $0090
|
|
|
|
BRKVec = $0092
|
|
|
|
NMIVec = $0094
|
|
|
|
|