2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Plus/4 generic definitions.
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Zero page, Commodore stuff
|
|
|
|
|
2004-04-28 11:53:59 +00:00
|
|
|
TMPPTR := $22 ; Temporary ptr used by BASIC
|
2015-09-28 15:27:39 +00:00
|
|
|
VARTAB := $2D ; Pointer to start of BASIC variables
|
|
|
|
MEMSIZE := $37 ; Pointer to highest BASIC RAM location (+1)
|
2013-08-25 04:43:23 +00:00
|
|
|
TXTPTR := $3B ; Pointer into BASIC source code
|
2004-04-28 11:53:59 +00:00
|
|
|
TIME := $A3 ; 60HZ clock
|
2013-05-09 11:56:54 +00:00
|
|
|
FNAM_LEN := $AB ; Length of filename
|
2004-04-28 11:53:59 +00:00
|
|
|
LFN := $AC ; Logical file number
|
2013-05-09 11:56:54 +00:00
|
|
|
SECADR := $AD ; Secondary address
|
|
|
|
DEVNUM := $AE ; Device number
|
2004-04-28 11:53:59 +00:00
|
|
|
FNAM := $AF ; Pointer to filename for OPEN
|
2013-05-09 11:56:54 +00:00
|
|
|
KEY_COUNT := $EF ; Number of keys in input buffer
|
2004-04-28 11:53:59 +00:00
|
|
|
RVS := $C2 ; Reverse flag
|
2013-05-09 11:56:54 +00:00
|
|
|
CURS_X := $CA ; Cursor column
|
|
|
|
CURS_Y := $CD ; Cursor row
|
|
|
|
SCREEN_PTR := $C8 ; Pointer to current char in text screen
|
|
|
|
CRAM_PTR := $EA ; Pointer to current char in color RAM
|
2004-04-28 11:53:59 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
BASIC_BUF := $200 ; Location of command-line
|
|
|
|
BASIC_BUF_LEN = 89 ; Maximum length of command-line
|
2004-04-28 11:55:43 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
FNBUF := $25E ; Buffer for filename
|
2004-04-28 12:03:09 +00:00
|
|
|
FETCH := $494 ; lda (zp),y from RAM
|
2004-04-28 11:53:59 +00:00
|
|
|
CHARCOLOR := $53B
|
2013-05-09 11:56:54 +00:00
|
|
|
FKEY_COUNT := $55D ; Characters for function key
|
|
|
|
FKEY_SPACE := $55F ; Function key definitions
|
|
|
|
FKEY_ORIG := $F3D2 ; Original definitions
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2017-06-21 22:04:42 +00:00
|
|
|
KBDREPEAT := $540
|
|
|
|
KBDREPEATRATE := $541
|
|
|
|
KBDREPEATDELAY := $542
|
2017-06-17 00:37:34 +00:00
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Vector and other locations
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
IRQVec := $0314
|
|
|
|
BRKVec := $0316
|
|
|
|
NMIVec := $0318
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2003-04-09 19:34:57 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; Screen size
|
|
|
|
|
|
|
|
XSIZE = 40
|
|
|
|
YSIZE = 25
|
|
|
|
|
2000-05-28 13:40:48 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; I/O
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
TED_T1LO := $FF00
|
|
|
|
TED_T1HI := $FF01
|
|
|
|
TED_T2LO := $FF02
|
|
|
|
TED_T2HI := $FF03
|
|
|
|
TED_T3LO := $FF04
|
|
|
|
TED_T4HI := $FF05
|
2004-04-28 11:53:59 +00:00
|
|
|
TED_MULTI1 := $FF07
|
2013-05-09 11:56:54 +00:00
|
|
|
TED_KBD := $FF08
|
|
|
|
TED_CURSHI := $FF0C
|
|
|
|
TED_CURSLO := $FF0D
|
|
|
|
TED_V1FRQLO := $FF0E
|
|
|
|
TED_V2FRQLO := $FF0F
|
|
|
|
TED_V2FRQHI := $FF10
|
2018-03-23 21:27:15 +00:00
|
|
|
TED_CLK := $FF13
|
2013-05-09 11:56:54 +00:00
|
|
|
TED_BGCOLOR := $FF15
|
|
|
|
TED_COLOR1 := $FF16
|
|
|
|
TED_COLOR2 := $FF17
|
|
|
|
TED_COLOR3 := $FF18
|
|
|
|
TED_BORDERCOLOR := $FF19
|
|
|
|
TED_VLINEHI := $FF1C
|
|
|
|
TED_VLINELO := $FF1D
|
|
|
|
TED_HPOS := $FF1E
|
|
|
|
TED_ROMSEL := $FF3E
|
|
|
|
TED_RAMSEL := $FF3F
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2002-11-22 22:16:20 +00:00
|
|
|
; ---------------------------------------------------------------------------
|
|
|
|
; RAM/ROM selection addresses
|
|
|
|
|
2004-04-28 11:53:59 +00:00
|
|
|
ENABLE_ROM := TED_ROMSEL
|
|
|
|
ENABLE_RAM := TED_RAMSEL
|