mirror of
https://github.com/mist64/msbasic.git
synced 2024-08-14 13:29:02 +00:00
153 lines
3.4 KiB
ArmAsm
153 lines
3.4 KiB
ArmAsm
Z00 := $0000
|
|
L0001 := $000B
|
|
GOWARM := $0003
|
|
GOSTROUT := $0006
|
|
GOGIVEAYF := $0008
|
|
|
|
USR := $000A
|
|
CHARAC := $000D
|
|
ENDCHR := $000E
|
|
EOLPNTR := $000F
|
|
DIMFLG := $0010
|
|
VALTYP := $0011
|
|
DATAFLG := $0013
|
|
SUBFLG := $0014
|
|
INPUTFLG := $0015
|
|
CPRMASK := $0016
|
|
Z14 := $0017 ; Ctrl+O flag
|
|
Z15 := $0018
|
|
Z16 := $0050
|
|
Z17 := $0051
|
|
Z18 := $0052
|
|
LINNUM := $0053
|
|
TXPSV := $0053
|
|
INPUTBUFFER := $0200
|
|
INPUTBUFFERX := $0200
|
|
TEMPPT := $0063-14
|
|
LASTPT := $0064-14
|
|
INDEX := $0061
|
|
DEST := $0071-14
|
|
RESULT := $0073-14
|
|
RESULT_LAST := $0077-14
|
|
TXTTAB := $0078-14
|
|
VARTAB := $007A-14
|
|
ARYTAB := $007C-14
|
|
STREND := $007E-14
|
|
FRETOP := $0080-14
|
|
FRESPC := $0082-14
|
|
MEMSIZ := $0084-14
|
|
CURLIN := $0086-14
|
|
OLDLIN := $0088-14
|
|
OLDTEXT := $008A-14
|
|
Z8C := $008C-14
|
|
DATPTR := $008E-14
|
|
INPTR := $0090-14
|
|
VARNAM := $0092-14
|
|
VARPNT := $0094-14
|
|
FORPNT := $0096-14
|
|
LASTOP := $0098-14
|
|
CPRTYP := $009A-14
|
|
FNCNAM := $009B-14
|
|
TEMP3 := $009B-14 ; same
|
|
DSCPTR := $009D-14
|
|
|
|
DSCLEN := $00A0-14
|
|
JMPADRS := $00A1-14
|
|
Z52 := $00A2-14
|
|
LENGTH := $00A2-14
|
|
ARGEXTENSION := $00A3-14 ; overlap with JMPADRS! (same on c64)
|
|
TEMP1 := $00A4-14
|
|
HIGHDS := $00A5-14
|
|
HIGHTR := $00A7-14
|
|
TEMP2 := $00A9-14
|
|
INDX := $00AA-14
|
|
TMPEXP := $00AA-14 ; same
|
|
EXPON := $00AB-14
|
|
LOWTR := $00AC-14 ; $9D also EXPSGN
|
|
LOWTRX := $00AC-14 ; $9D also EXPSGN
|
|
EXPSGN := $00AD-14
|
|
FAC := $00AE-14
|
|
FAC_LAST := $00B2-14
|
|
FACSIGN := $00B3-14
|
|
SERLEN := $00B4-14
|
|
SHIFTSIGNEXT := $00B5-14
|
|
ARG := $00B6-14
|
|
ARG_LAST := $00BA-14
|
|
ARGSIGN := $00BB-14
|
|
STRNG1 := $00BC-14 ; TODO: also SGNCPR
|
|
FACEXTENSION := $00BD-14
|
|
STRNG2 := $00BE-14
|
|
CHRGET := $00C0-14
|
|
CHRGOT := $00C6-14
|
|
TXTPTR := $00C7-14
|
|
|
|
RNDSEED := $00D8-14
|
|
|
|
L1800 := $1800
|
|
L1873 := $1873
|
|
MONRDKEY := $FD0C
|
|
MONCOUT := $FDED
|
|
|
|
STACK_TOP := $F8
|
|
BYTES_PER_FRAME := $12
|
|
SPACE_FOR_GOSUB := $36
|
|
TEMPST := $58
|
|
FOR_STACK1 := $0F
|
|
FOR_STACK2 := $09
|
|
NUM_TOKENS := $1C
|
|
BYTES_PER_ELEMENT := 6 ; ??? should be 5 on Apple
|
|
BYTES_PER_VARIABLE := 7
|
|
BYTES_FP := 5
|
|
MANTISSA_BYTES := BYTES_FP-1
|
|
MAX_EXPON = 10
|
|
|
|
TOKEN_GOTO := $88
|
|
TOKEN_GOSUB := $8C
|
|
TOKEN_REM := $8E
|
|
TOKEN_PRINT := $96
|
|
TOKEN_TAB := $9C
|
|
TOKEN_TO := $9D
|
|
TOKEN_FN := $9E
|
|
TOKEN_SPC := $9F
|
|
TOKEN_THEN := $A0
|
|
TOKEN_NOT := $A1
|
|
TOKEN_STEP := $A2
|
|
TOKEN_PLUS := $A3
|
|
TOKEN_MINUS := $A4
|
|
TOKEN_GREATER := $AA
|
|
TOKEN_EQUAL := $AB
|
|
TOKEN_SGN := $AD
|
|
TOKEN_LEFTSTR := $C1
|
|
|
|
|
|
RAMSTART3 := $2A00
|
|
RAMSTART2 := $2A00
|
|
LF689 := $F689
|
|
LF800 := $F800
|
|
LF819 := $F819
|
|
LF828 := $F828
|
|
LF864 := $F864
|
|
TEX := $FB2F
|
|
LFB40 := $FB40
|
|
LFD0C := $FD0C
|
|
LFD6A := $FD6A
|
|
LFECD := $FECD
|
|
LFEFD := $FEFD
|
|
|
|
L0D28 := $AAAA
|
|
L000A := $000A
|
|
L123C := $AAAA
|
|
L2AAA := $AAAA
|
|
L2A52 := $AAAA
|
|
L2AA3 := $AAAA
|
|
L1008 := $AAAA
|
|
L2A6D := $AAAA
|
|
L2A68 := $AAAA
|
|
L0008 := $08
|
|
L0006 := $06
|
|
L1F20 := $AAAA
|
|
L00A4 := $A4
|
|
L1751 := $AAAA
|
|
L2198 := $AAAA
|
|
L13D7 := $AAAA
|