mirror of
https://github.com/mist64/msbasic.git
synced 2024-12-21 01:30:42 +00:00
cleanup
This commit is contained in:
parent
e1869b5338
commit
2f8ec07455
@ -1,5 +1,6 @@
|
|||||||
; http://apple2.org.za/gswv/a2zine/GS.WorldView/Resources/GS.TECH.INFO/AppleSoft/
|
; http://apple2.org.za/gswv/a2zine/GS.WorldView/Resources/GS.TECH.INFO/AppleSoft/
|
||||||
|
|
||||||
|
; configuration
|
||||||
CONFIG_11 := 1
|
CONFIG_11 := 1
|
||||||
CONFIG_IO_MSB := 1 ; all I/O has bit #7 set
|
CONFIG_IO_MSB := 1 ; all I/O has bit #7 set
|
||||||
CONFIG_PRINT_CR := 1 ; print CR when line end reached
|
CONFIG_PRINT_CR := 1 ; print CR when line end reached
|
||||||
@ -7,9 +8,7 @@ CONFIG_SAFE_NAMENOTFOUND := 1
|
|||||||
CONFIG_SCRTCH_ORDER := 3
|
CONFIG_SCRTCH_ORDER := 3
|
||||||
; INPUTBUFFER > $0100
|
; INPUTBUFFER > $0100
|
||||||
|
|
||||||
CRLF_1 := CR
|
; zero page
|
||||||
CRLF_2 := $80
|
|
||||||
|
|
||||||
ZP_START1 = $0D
|
ZP_START1 = $0D
|
||||||
ZP_START = $3D
|
ZP_START = $3D
|
||||||
|
|
||||||
@ -34,20 +33,25 @@ INPUTBUFFERX := $0200
|
|||||||
MONRDKEY := $FD0C
|
MONRDKEY := $FD0C
|
||||||
MONCOUT := $FDED
|
MONCOUT := $FDED
|
||||||
|
|
||||||
|
; constants
|
||||||
STACK_TOP := $F8
|
STACK_TOP := $F8
|
||||||
SPACE_FOR_GOSUB := $36
|
SPACE_FOR_GOSUB := $36
|
||||||
|
CRLF_1 := CR
|
||||||
|
CRLF_2 := $80
|
||||||
|
|
||||||
|
; memory layout
|
||||||
RAMSTART2 := $2A00
|
RAMSTART2 := $2A00
|
||||||
|
|
||||||
LF689 := $F689
|
; monitor functions
|
||||||
LF800 := $F800
|
LF689 := $F689
|
||||||
LF819 := $F819
|
LF800 := $F800
|
||||||
LF828 := $F828
|
LF819 := $F819
|
||||||
LF864 := $F864
|
LF828 := $F828
|
||||||
TEX := $FB2F
|
LF864 := $F864
|
||||||
LFB40 := $FB40
|
TEX := $FB2F
|
||||||
LFD0C := $FD0C
|
LFB40 := $FB40
|
||||||
LFD6A := $FD6A
|
LFD0C := $FD0C
|
||||||
LFECD := $FECD
|
LFD6A := $FD6A
|
||||||
LFEFD := $FEFD
|
LFECD := $FECD
|
||||||
|
LFEFD := $FEFD
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
; configuration
|
||||||
; common:
|
; common:
|
||||||
CONFIG_CBM_ALL := 1
|
CONFIG_CBM_ALL := 1
|
||||||
|
|
||||||
@ -26,11 +27,8 @@ CONFIG_PEEK_SAVE_LINNUM := 1
|
|||||||
; INPUTBUFFER > $0100
|
; INPUTBUFFER > $0100
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
||||||
CRLF_1 := CR
|
|
||||||
CRLF_2 := LF
|
|
||||||
|
|
||||||
.ifdef CBM1
|
.ifdef CBM1
|
||||||
|
; zero page
|
||||||
ZP_START1 = $5A
|
ZP_START1 = $5A
|
||||||
ZP_START = $00
|
ZP_START = $00
|
||||||
|
|
||||||
@ -40,7 +38,7 @@ LOWTRX = LOWTR
|
|||||||
USR := $0000
|
USR := $0000
|
||||||
GORESTART := $0000
|
GORESTART := $0000
|
||||||
INPUTBUFFERX := $0000
|
INPUTBUFFERX := $0000
|
||||||
Z03 := $0003 ; same
|
Z03 := $0003
|
||||||
|
|
||||||
Z15 := $0004
|
Z15 := $0004
|
||||||
POSX := $0005
|
POSX := $0005
|
||||||
@ -53,6 +51,7 @@ Z96 := $020C
|
|||||||
NULL_MAX := $0A
|
NULL_MAX := $0A
|
||||||
.else
|
.else
|
||||||
|
|
||||||
|
; zero page
|
||||||
ZP_START1 = $03
|
ZP_START1 = $03
|
||||||
ZP_START = $05
|
ZP_START = $05
|
||||||
|
|
||||||
@ -62,17 +61,18 @@ LOWTRX = LOWTR
|
|||||||
USR := $0000
|
USR := $0000
|
||||||
GORESTART := $0000
|
GORESTART := $0000
|
||||||
|
|
||||||
Z03 := $000E;3 ; same
|
Z03 := $000E
|
||||||
LINNUM := $0011;0008
|
LINNUM := $0011
|
||||||
|
|
||||||
Z96 := $00E8-82
|
Z96 := $00E8-82
|
||||||
POSX := $0118-82
|
POSX := $0118-82
|
||||||
TXPSV = LASTOP
|
TXPSV = LASTOP
|
||||||
|
|
||||||
INPUTBUFFER := $0200;00A
|
INPUTBUFFER := $0200
|
||||||
INPUTBUFFERX := $0200
|
INPUTBUFFERX := $0200
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
; constants
|
||||||
.ifdef CBM1
|
.ifdef CBM1
|
||||||
SPACE_FOR_GOSUB := $36
|
SPACE_FOR_GOSUB := $36
|
||||||
STACK_TOP := $FC
|
STACK_TOP := $FC
|
||||||
@ -80,10 +80,13 @@ STACK_TOP := $FC
|
|||||||
SPACE_FOR_GOSUB := $3E
|
SPACE_FOR_GOSUB := $3E
|
||||||
STACK_TOP := $FA
|
STACK_TOP := $FA
|
||||||
.endif
|
.endif
|
||||||
|
CRLF_1 := CR
|
||||||
|
CRLF_2 := LF
|
||||||
|
|
||||||
RAMSTART2 := $0400
|
RAMSTART2 := $0400
|
||||||
|
|
||||||
|
|
||||||
|
; monitor functions
|
||||||
OPEN := $FFC0
|
OPEN := $FFC0
|
||||||
CLOSE := $FFC3
|
CLOSE := $FFC3
|
||||||
CHKIN := $FFC6
|
CHKIN := $FFC6
|
||||||
@ -98,10 +101,7 @@ SYS := $FFDE
|
|||||||
ISCNTC := $FFE1
|
ISCNTC := $FFE1
|
||||||
GETIN := $FFE4
|
GETIN := $FFE4
|
||||||
CLALL := $FFE7
|
CLALL := $FFE7
|
||||||
|
LE7F3 := $E7F3; for CBM1
|
||||||
; for CBM1
|
|
||||||
LE7F3 := $E7F3
|
|
||||||
|
|
||||||
MONCOUT := CHROUT
|
MONCOUT := CHROUT
|
||||||
MONRDKEY := GETIN
|
MONRDKEY := GETIN
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
; configuration
|
||||||
CONFIG_11 := 1
|
CONFIG_11 := 1
|
||||||
CONFIG_11A := 1
|
CONFIG_11A := 1
|
||||||
CONFIG_2 := 1
|
CONFIG_2 := 1
|
||||||
@ -14,41 +15,45 @@ CONFIG_SMALL := 1
|
|||||||
CRLF_1 := LF
|
CRLF_1 := LF
|
||||||
CRLF_2 := CR
|
CRLF_2 := CR
|
||||||
|
|
||||||
|
; zero page
|
||||||
ZP_START1 = $6
|
ZP_START1 = $6
|
||||||
ZP_START = $05
|
ZP_START = $05
|
||||||
|
|
||||||
|
|
||||||
POSX := $0010
|
POSX := $0010
|
||||||
Z17 := $06FC;$000F
|
Z17 := $06FC
|
||||||
Z18 := $06FD;$0010
|
Z18 := $06FD
|
||||||
LINNUM := $0013;11
|
LINNUM := $0013
|
||||||
TXPSV := $0049
|
TXPSV := $0049
|
||||||
INPUTBUFFER := $0700
|
INPUTBUFFER := $0700
|
||||||
INPUTBUFFERX := $0700
|
INPUTBUFFERX := $0700
|
||||||
|
|
||||||
JMPADRS := $0093;A1
|
JMPADRS := $0093
|
||||||
LOWTRX := $0094;AA ; $AB also EXPSGN?
|
LOWTRX := $0094 ; $AB also EXPSGN?
|
||||||
Z96 := $0096
|
Z96 := $0096
|
||||||
|
|
||||||
|
; magic memory locations
|
||||||
L06FE := $06FE
|
L06FE := $06FE
|
||||||
|
L6874 := $6874
|
||||||
|
|
||||||
MONCOUT := $FDFA
|
|
||||||
|
|
||||||
|
; constants
|
||||||
STACK_TOP := $FE
|
STACK_TOP := $FE
|
||||||
SPACE_FOR_GOSUB := $49
|
SPACE_FOR_GOSUB := $49
|
||||||
|
|
||||||
|
; memory layout
|
||||||
|
RAMSTART2 := $0300
|
||||||
CONST_MEMSIZ := $3FFF
|
CONST_MEMSIZ := $3FFF
|
||||||
|
|
||||||
RAMSTART2 := $0300
|
; monitor functions
|
||||||
|
MONCOUT := $FDFA
|
||||||
|
LC000 := $C000
|
||||||
|
LC009 := $C009
|
||||||
|
LDE24 := $DE24
|
||||||
|
LDE42 := $DE42 ; PRIMM ?
|
||||||
|
LDE48 := $DE48
|
||||||
|
LDE53 := $DE53
|
||||||
|
LDE7F := $DE7F
|
||||||
|
LDE8C := $DE8C
|
||||||
|
|
||||||
LC000 = $C000
|
|
||||||
LC009 = $C009
|
|
||||||
LDE24 = $DE24
|
|
||||||
LDE42 = $DE42 ; PRIMM ?
|
|
||||||
LDE48 = $DE48
|
|
||||||
LDE53 = $DE53
|
|
||||||
LDE7F = $DE7F
|
|
||||||
LDE8C = $DE8C
|
|
||||||
|
|
||||||
L6874 = $6874
|
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
; configuration
|
||||||
CONFIG_11 := 1
|
CONFIG_11 := 1
|
||||||
CONFIG_11A := 1
|
CONFIG_11A := 1
|
||||||
|
|
||||||
@ -11,6 +12,7 @@ CONFIG_SCRTCH_ORDER := 2
|
|||||||
CRLF_1 := CR
|
CRLF_1 := CR
|
||||||
CRLF_2 := LF
|
CRLF_2 := LF
|
||||||
|
|
||||||
|
; zero page
|
||||||
ZP_START1 = $0A
|
ZP_START1 = $0A
|
||||||
ZP_START = $4E
|
ZP_START = $4E
|
||||||
|
|
||||||
@ -31,11 +33,15 @@ TXPSV := $0019
|
|||||||
INPUTBUFFER := $001B
|
INPUTBUFFER := $001B
|
||||||
INPUTBUFFERX := $0000
|
INPUTBUFFERX := $0000
|
||||||
|
|
||||||
|
; magic memory locations
|
||||||
L1800 := $1800
|
L1800 := $1800
|
||||||
L1873 := $1873
|
L1873 := $1873
|
||||||
|
|
||||||
|
; monitor functions
|
||||||
MONRDKEY := $1E5A
|
MONRDKEY := $1E5A
|
||||||
MONCOUT := $1EA0
|
MONCOUT := $1EA0
|
||||||
|
|
||||||
|
; constants
|
||||||
STACK_TOP := $FC
|
STACK_TOP := $FC
|
||||||
SPACE_FOR_GOSUB := $36
|
SPACE_FOR_GOSUB := $36
|
||||||
NULL_MAX := $F2 ; probably different in original version; the image I have seems to be modified; see PDF
|
NULL_MAX := $F2 ; probably different in original version; the image I have seems to be modified; see PDF
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
; configuration
|
||||||
CONFIG_11 := 1
|
CONFIG_11 := 1
|
||||||
CONFIG_11A := 1
|
CONFIG_11A := 1
|
||||||
CONFIG_2 := 1
|
CONFIG_2 := 1
|
||||||
@ -15,6 +16,7 @@ CONFIG_SCRTCH_ORDER := 1
|
|||||||
CRLF_1 := CR
|
CRLF_1 := CR
|
||||||
CRLF_2 := LF
|
CRLF_2 := LF
|
||||||
|
|
||||||
|
; zero page
|
||||||
ZP_START1 = $24
|
ZP_START1 = $24
|
||||||
ZP_START = $56
|
ZP_START = $56
|
||||||
|
|
||||||
@ -37,16 +39,18 @@ TXPSV := $00BA
|
|||||||
INPUTBUFFER := $001B+$1A
|
INPUTBUFFER := $001B+$1A
|
||||||
INPUTBUFFERX := $0000
|
INPUTBUFFERX := $0000
|
||||||
|
|
||||||
MONRDKEY := $E210
|
; constants
|
||||||
MONRDKEY2 := $E213
|
|
||||||
MONCOUT := $E216
|
|
||||||
|
|
||||||
STACK_TOP := $FE
|
STACK_TOP := $FE
|
||||||
SPACE_FOR_GOSUB := $3E
|
SPACE_FOR_GOSUB := $3E
|
||||||
NULL_MAX := $F0
|
NULL_MAX := $F0
|
||||||
|
|
||||||
|
; memory layout
|
||||||
RAMSTART2 := $0400
|
RAMSTART2 := $0400
|
||||||
|
|
||||||
|
; monitor functions
|
||||||
|
MONRDKEY := $E210
|
||||||
|
MONRDKEY2 := $E213
|
||||||
|
MONCOUT := $E216
|
||||||
LF000 := $F000
|
LF000 := $F000
|
||||||
LF003 := $F003
|
LF003 := $F003
|
||||||
LF006 := $F006
|
LF006 := $F006
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
; configuration
|
||||||
CONFIG_DATAFLAG := 1
|
CONFIG_DATAFLAG := 1
|
||||||
CONFIG_NULL := 1
|
CONFIG_NULL := 1
|
||||||
CONFIG_PRINT_CR := 1 ; print CR when line end reached
|
CONFIG_PRINT_CR := 1 ; print CR when line end reached
|
||||||
@ -7,6 +8,7 @@ CONFIG_SMALL := 1
|
|||||||
CRLF_1 := CR
|
CRLF_1 := CR
|
||||||
CRLF_2 := LF
|
CRLF_2 := LF
|
||||||
|
|
||||||
|
; zero page
|
||||||
ZP_START1 = $5B
|
ZP_START1 = $5B
|
||||||
ZP_START = $00
|
ZP_START = $00
|
||||||
|
|
||||||
@ -28,16 +30,22 @@ TXPSV := $0011
|
|||||||
INPUTBUFFER := $0013
|
INPUTBUFFER := $0013
|
||||||
INPUTBUFFERX := $0000
|
INPUTBUFFERX := $0000
|
||||||
|
|
||||||
|
; constants
|
||||||
|
STACK_TOP := $FC
|
||||||
|
SPACE_FOR_GOSUB := $33
|
||||||
|
NULL_MAX := $0A
|
||||||
|
|
||||||
|
; memory layout
|
||||||
|
RAMSTART2 := $0300
|
||||||
|
|
||||||
|
; magic memory locations
|
||||||
L0207 := $0207
|
L0207 := $0207
|
||||||
L020A := $020A
|
L020A := $020A
|
||||||
|
|
||||||
|
; monitor functions
|
||||||
MONRDKEY := $FFEB
|
MONRDKEY := $FFEB
|
||||||
MONCOUT := $FFEE
|
MONCOUT := $FFEE
|
||||||
MONISCNTC := $FFF1
|
MONISCNTC := $FFF1
|
||||||
LOAD := $FFF4
|
LOAD := $FFF4
|
||||||
SAVE := $FFF7
|
SAVE := $FFF7
|
||||||
|
|
||||||
STACK_TOP := $FC
|
|
||||||
SPACE_FOR_GOSUB := $33
|
|
||||||
NULL_MAX := $0A
|
|
||||||
|
|
||||||
RAMSTART2 := $0300
|
|
Loading…
Reference in New Issue
Block a user