Mercurial > hg > index.cgi
diff 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 |
line wrap: on
line diff
--- a/src/vars.s Mon Oct 23 20:23:28 2023 -0600 +++ b/src/vars.s Mon Oct 23 22:46:55 2023 -0600 @@ -39,14 +39,16 @@ tok_kwnum rmb 1 ; the actual token number tok_kwmatchl rmb 1 ; the length of the best match during lookup tok_kwmatch rmb 2 ; the current best matched token number -; General value accumulators used during expression evaluation +; General value accumulators used during expression evaluation. These are in the same format used for storing +; values in variables with the exception of having a type flag. val0 rmb val.size ; value accumulator 0 - current expression value val1 rmb val.size ; value accumulator 1 - usually left operand of binary operator -; The fpa0 and fpa1 areas are used for scratch work during floating point operations. They are only used -; by floating point operations. This saves a fair fiew clock cycles over simply working off the index register -; pointers passed into the routines and it also allows for being able to leave the input operands for the -; routines unmodified, or to overlap the input and output operands. These floating point accumulators can hold -; the maximum precision floating point values used by the system. +; The fpa0 and fpa1 areas are used for scratch work during floating point operations. They are only used by +; floating point operations and operations related to floating point such as number conversion. This saves a fair +; few clock cycles over simply working off the index register pointers passed into the routines and it also allows +; for being able to leave the input operands for the routines unmodified, or to overlap the input and output +; operands. These floating point accumulators can hold the maximum precision floating point values used by the +; system. fpa0 rmb fpa.size ; floating point accumulator 1 fpa1 rmb fpa.size ; floating point accumulator 1 fpaextra rmb 12 ; "extra" bytes for calculations