mirror of
https://github.com/mist64/msbasic.git
synced 2024-12-21 17:30:09 +00:00
cleanup
This commit is contained in:
parent
67c4a8b7f6
commit
56fb87ea81
@ -14,27 +14,15 @@ ZP_START0A = $4F
|
|||||||
ZP_START1 = $0D
|
ZP_START1 = $0D
|
||||||
ZP_START2 = $55
|
ZP_START2 = $55
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
;extra ZP variables
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
USR := $000A
|
USR := $000A
|
||||||
|
|
||||||
;POSX := $0050
|
|
||||||
;Z17 := $0051
|
|
||||||
;Z18 := $0052
|
|
||||||
;LINNUM := $0053
|
|
||||||
|
|
||||||
TXPSV := $0053
|
INPUTBUFFER := $0200
|
||||||
|
|
||||||
CONFIG_NO_INPUTBUFFER_ZP := 1
|
CONFIG_NO_INPUTBUFFER_ZP := 1
|
||||||
CONFIG_INPUTBUFFER_0200 := 1
|
CONFIG_INPUTBUFFER_0200 := 1
|
||||||
|
|
||||||
INPUTBUFFER := $0200
|
|
||||||
INPUTBUFFERX := $0200
|
|
||||||
|
|
||||||
MONRDKEY := $FD0C
|
|
||||||
MONCOUT := $FDED
|
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
STACK_TOP := $F8
|
STACK_TOP := $F8
|
||||||
SPACE_FOR_GOSUB := $36
|
SPACE_FOR_GOSUB := $36
|
||||||
@ -45,6 +33,8 @@ CRLF_2 := $80
|
|||||||
RAMSTART2 := $2A00
|
RAMSTART2 := $2A00
|
||||||
|
|
||||||
; monitor functions
|
; monitor functions
|
||||||
|
MONRDKEY := $FD0C
|
||||||
|
MONCOUT := $FDED
|
||||||
LF689 := $F689
|
LF689 := $F689
|
||||||
LF800 := $F800
|
LF800 := $F800
|
||||||
LF819 := $F819
|
LF819 := $F819
|
||||||
|
@ -34,25 +34,13 @@ ZP_START0A = $04
|
|||||||
ZP_START1 = $5A
|
ZP_START1 = $5A
|
||||||
ZP_START2 = $65
|
ZP_START2 = $65
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
;extra ZP variables
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
USR := $0000
|
|
||||||
|
|
||||||
;GORESTART := $0000
|
|
||||||
|
|
||||||
;Z15 := $0004
|
|
||||||
;POSX := $0005
|
|
||||||
;LINNUM := $0008
|
|
||||||
;INPUTBUFFER := $000A
|
|
||||||
|
|
||||||
TXPSV := $0008
|
|
||||||
INPUTBUFFERX := $0000
|
|
||||||
|
|
||||||
Z03 := $0003
|
Z03 := $0003
|
||||||
Z96 := $020C
|
Z96 := $020C
|
||||||
|
|
||||||
NULL_MAX := $0A
|
; overlay ZP variables
|
||||||
|
USR := GORESTART
|
||||||
|
|
||||||
.else
|
.else
|
||||||
|
|
||||||
; zero page
|
; zero page
|
||||||
@ -61,32 +49,29 @@ ZP_START0A = $0E
|
|||||||
ZP_START1 = $03
|
ZP_START1 = $03
|
||||||
ZP_START2 = $13
|
ZP_START2 = $13
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
;extra ZP variables
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
USR := GORESTART ; XXX
|
|
||||||
|
|
||||||
;LINNUM := $0011
|
|
||||||
|
|
||||||
Z03 := $000E
|
Z03 := $000E
|
||||||
Z96 := $0096
|
Z96 := $0096
|
||||||
|
|
||||||
; override
|
; overlay ZP variables
|
||||||
|
TXPSV := LASTOP
|
||||||
|
USR := GORESTART ; XXX
|
||||||
|
|
||||||
|
; override ZP variables
|
||||||
POSX := $00C6
|
POSX := $00C6
|
||||||
|
|
||||||
TXPSV = LASTOP
|
INPUTBUFFER := $0200
|
||||||
|
|
||||||
CONFIG_NO_INPUTBUFFER_ZP := 1
|
CONFIG_NO_INPUTBUFFER_ZP := 1
|
||||||
CONFIG_INPUTBUFFER_0200 := 1
|
CONFIG_INPUTBUFFER_0200 := 1
|
||||||
|
|
||||||
INPUTBUFFER := $0200
|
|
||||||
INPUTBUFFERX := $0200
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
.ifdef CBM1
|
.ifdef CBM1
|
||||||
SPACE_FOR_GOSUB := $36
|
SPACE_FOR_GOSUB := $36
|
||||||
STACK_TOP := $FC
|
STACK_TOP := $FC
|
||||||
|
NULL_MAX := $0A
|
||||||
.else
|
.else
|
||||||
SPACE_FOR_GOSUB := $3E
|
SPACE_FOR_GOSUB := $3E
|
||||||
STACK_TOP := $FA
|
STACK_TOP := $FA
|
||||||
|
@ -18,31 +18,24 @@ ZP_START0A = $0F
|
|||||||
ZP_START1 = $06
|
ZP_START1 = $06
|
||||||
ZP_START2 = $15
|
ZP_START2 = $15
|
||||||
|
|
||||||
|
;extra ZP variables
|
||||||
|
TXPSV := $0049
|
||||||
JMPADRS := $0093
|
JMPADRS := $0093
|
||||||
LOWTRX := $0094 ; $AB also EXPSGN?
|
LOWTRX := $0094 ; $AB also EXPSGN?
|
||||||
|
Z96 := $0096
|
||||||
|
|
||||||
;POSX := $0010
|
; override ZP variables
|
||||||
;LINNUM := $0013
|
|
||||||
|
|
||||||
; overrides
|
|
||||||
Z17 := $06FC
|
Z17 := $06FC
|
||||||
Z18 := $06FD
|
Z18 := $06FD
|
||||||
|
|
||||||
|
INPUTBUFFER := $0700
|
||||||
TXPSV := $0049
|
|
||||||
|
|
||||||
CONFIG_NO_INPUTBUFFER_ZP := 1
|
CONFIG_NO_INPUTBUFFER_ZP := 1
|
||||||
|
|
||||||
INPUTBUFFER := $0700
|
|
||||||
INPUTBUFFERX := $0700
|
|
||||||
|
|
||||||
Z96 := $0096
|
|
||||||
|
|
||||||
; magic memory locations
|
; magic memory locations
|
||||||
L06FE := $06FE
|
L06FE := $06FE
|
||||||
L6874 := $6874
|
L6874 := $6874
|
||||||
|
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
STACK_TOP := $FE
|
STACK_TOP := $FE
|
||||||
SPACE_FOR_GOSUB := $49
|
SPACE_FOR_GOSUB := $49
|
||||||
|
@ -15,19 +15,6 @@ ZP_START0A = $15
|
|||||||
ZP_START1 = $0A
|
ZP_START1 = $0A
|
||||||
ZP_START2 = $63
|
ZP_START2 = $63
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
;Z15 := $0015
|
|
||||||
;POSX := $0016
|
|
||||||
;Z17 := $0017
|
|
||||||
;Z18 := $0018
|
|
||||||
;LINNUM := $0019
|
|
||||||
;INPUTBUFFER := $001B
|
|
||||||
|
|
||||||
TXPSV := $0019
|
|
||||||
INPUTBUFFERX := $0000
|
|
||||||
|
|
||||||
; magic memory locations
|
; magic memory locations
|
||||||
L1800 := $1800
|
L1800 := $1800
|
||||||
L1873 := $1873
|
L1873 := $1873
|
||||||
|
@ -19,20 +19,9 @@ ZP_START0A = $2F
|
|||||||
ZP_START1 = $24
|
ZP_START1 = $24
|
||||||
ZP_START2 = $85
|
ZP_START2 = $85
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
;extra ZP variables
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
USR := $0021
|
USR := $0021
|
||||||
|
|
||||||
;Z15 := $002F
|
|
||||||
;POSX := $0030
|
|
||||||
;Z17 := $0031
|
|
||||||
;Z18 := $0032
|
|
||||||
;LINNUM := $0033
|
|
||||||
;INPUTBUFFER := $0035
|
|
||||||
|
|
||||||
TXPSV := $00BA
|
TXPSV := $00BA
|
||||||
INPUTBUFFERX := $0000
|
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
STACK_TOP := $FE
|
STACK_TOP := $FE
|
||||||
|
@ -11,19 +11,8 @@ ZP_START0A = $0D
|
|||||||
ZP_START1 = $5B
|
ZP_START1 = $5B
|
||||||
ZP_START2 = $65
|
ZP_START2 = $65
|
||||||
|
|
||||||
JMPADRS = DSCLEN + 1
|
;extra ZP variables
|
||||||
LOWTRX = LOWTR
|
|
||||||
|
|
||||||
USR := $000A
|
USR := $000A
|
||||||
;Z15 := $000D
|
|
||||||
;POSX := $000E
|
|
||||||
;Z17 := $000F
|
|
||||||
;Z18 := $0010
|
|
||||||
;LINNUM := $0011
|
|
||||||
;INPUTBUFFER := $0013
|
|
||||||
|
|
||||||
TXPSV := $0011
|
|
||||||
INPUTBUFFERX := $0000
|
|
||||||
|
|
||||||
; constants
|
; constants
|
||||||
STACK_TOP := $FC
|
STACK_TOP := $FC
|
||||||
|
17
zeropage.s
17
zeropage.s
@ -1,5 +1,20 @@
|
|||||||
.feature org_per_seg
|
|
||||||
|
|
||||||
|
; other memory locations
|
||||||
|
INPUTBUFFERX = INPUTBUFFER & $FF00
|
||||||
|
|
||||||
|
; overlay ZP variables, can be overridden
|
||||||
|
.ifndef JMPADRS
|
||||||
|
JMPADRS := DSCLEN + 1
|
||||||
|
.endif
|
||||||
|
.ifndef LOWTRX
|
||||||
|
LOWTRX := LOWTR
|
||||||
|
.endif
|
||||||
|
.ifndef TXPSV
|
||||||
|
TXPSV := LINNUM
|
||||||
|
.endif
|
||||||
|
|
||||||
|
|
||||||
|
.feature org_per_seg
|
||||||
.zeropage
|
.zeropage
|
||||||
|
|
||||||
.org ZP_START0
|
.org ZP_START0
|
||||||
|
Loading…
Reference in New Issue
Block a user