comparison src/vars.s @ 100:6db72a92ff7a

Make value accumulator descriptions consistent and make usage consistent
author William Astle <lost@l-w.ca>
date Mon, 23 Oct 2023 22:46:55 -0600
parents 663d8e77b579
children a6a53e5c04bd
comparison
equal deleted inserted replaced
99:4d7fa11ebe3f 100:6db72a92ff7a
37 tok_skipdt rmb 1 ; flag for when processing DATA 37 tok_skipdt rmb 1 ; flag for when processing DATA
38 tok_kwtype rmb 1 ; primary/secondary type flag for tokens 38 tok_kwtype rmb 1 ; primary/secondary type flag for tokens
39 tok_kwnum rmb 1 ; the actual token number 39 tok_kwnum rmb 1 ; the actual token number
40 tok_kwmatchl rmb 1 ; the length of the best match during lookup 40 tok_kwmatchl rmb 1 ; the length of the best match during lookup
41 tok_kwmatch rmb 2 ; the current best matched token number 41 tok_kwmatch rmb 2 ; the current best matched token number
42 ; General value accumulators used during expression evaluation 42 ; General value accumulators used during expression evaluation. These are in the same format used for storing
43 ; values in variables with the exception of having a type flag.
43 val0 rmb val.size ; value accumulator 0 - current expression value 44 val0 rmb val.size ; value accumulator 0 - current expression value
44 val1 rmb val.size ; value accumulator 1 - usually left operand of binary operator 45 val1 rmb val.size ; value accumulator 1 - usually left operand of binary operator
45 ; The fpa0 and fpa1 areas are used for scratch work during floating point operations. They are only used 46 ; The fpa0 and fpa1 areas are used for scratch work during floating point operations. They are only used by
46 ; by floating point operations. This saves a fair fiew clock cycles over simply working off the index register 47 ; floating point operations and operations related to floating point such as number conversion. This saves a fair
47 ; pointers passed into the routines and it also allows for being able to leave the input operands for the 48 ; few clock cycles over simply working off the index register pointers passed into the routines and it also allows
48 ; routines unmodified, or to overlap the input and output operands. These floating point accumulators can hold 49 ; for being able to leave the input operands for the routines unmodified, or to overlap the input and output
49 ; the maximum precision floating point values used by the system. 50 ; operands. These floating point accumulators can hold the maximum precision floating point values used by the
51 ; system.
50 fpa0 rmb fpa.size ; floating point accumulator 1 52 fpa0 rmb fpa.size ; floating point accumulator 1
51 fpa1 rmb fpa.size ; floating point accumulator 1 53 fpa1 rmb fpa.size ; floating point accumulator 1
52 fpaextra rmb 12 ; "extra" bytes for calculations 54 fpaextra rmb 12 ; "extra" bytes for calculations
53 rmb 0x71-* ; align RSTFLG/RSTVEC for stock ROM compatibility 55 rmb 0x71-* ; align RSTFLG/RSTVEC for stock ROM compatibility
54 RSTFLG rmb 1 ; 0x55 if RSTVEC is valid 56 RSTFLG rmb 1 ; 0x55 if RSTVEC is valid