msbasic/defines_apple.s

155 lines
3.5 KiB
ArmAsm
Raw Normal View History

2008-10-11 06:23:53 +00:00
Z00 := $0000
L0001 := $0001
L0002 := $0002
2008-10-11 07:15:19 +00:00
GOWARM := $0003
2008-10-11 06:23:53 +00:00
GOSTROUT := $0003
GOGIVEAYF := $0008
2008-10-11 07:15:19 +00:00
USR := $000A
2008-10-11 06:23:53 +00:00
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
2008-10-11 07:15:19 +00:00
Z18 := $0052
2008-10-11 06:23:53 +00:00
LINNUM := $0053
2008-10-11 07:15:19 +00:00
TXPSV := $0053
2008-10-11 06:23:53 +00:00
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
2008-10-11 07:15:19 +00:00
MONRDKEY := $FD0C
MONCOUT := $FDED
2008-10-11 06:23:53 +00:00
STACK_TOP := $F8
BYTES_PER_FRAME := $12
SPACE_FOR_GOSUB := $36
TEMPST := $58
FOR_STACK1 := $0F
FOR_STACK2 := $09
2008-10-11 07:15:19 +00:00
NUM_TOKENS := $1C
BYTES_PER_ELEMENT := 6 ; ??? should be 5 on Apple
2008-10-11 06:23:53 +00:00
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 := $AAAA
RAMSTART2 := $AAAA
2008-10-11 07:15:19 +00:00
LF689 := $F689
LF800 := $F800
LF819 := $F819
LF828 := $F828
LF864 := $F864
TEX := $FB2F
LFB40 := $FB40
LFD0C := $FD0C
LFD6A := $FD6A
LFECD := $FECD
LFEFD := $FEFD
2008-10-11 06:23:53 +00:00
L0D28 := $AAAA
L000A := $000A
L123C := $AAAA
L2829 := $AAAA
L2AAA := $AAAA
L2A52 := $AAAA
L2AA3 := $AAAA
L1008 := $AAAA
L2A6D := $AAAA
L2A68 := $AAAA
L0008 := $AA
L0006 := $AA
L1F20 := $AAAA
L00A4 := $AA
L1751 := $AAAA
L2198 := $AAAA
L13D7 := $AAAA