Mercurial > hg > index.cgi
diff src/vars.s @ 136:e49bd0493baf
Checkpoint updates to immediate mode program editing and some memory handling
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 12 Jul 2024 23:29:45 -0600 |
parents | 917b4893bb3d |
children |
line wrap: on
line diff
--- a/src/vars.s Tue Jul 09 22:18:30 2024 -0600 +++ b/src/vars.s Fri Jul 12 23:29:45 2024 -0600 @@ -45,6 +45,10 @@ parse_tokenst rmb 2 ; pointer into input buffer of start of currently parsed token parse_curtok rmb 1 ; current token type code parse_stackptr rmb 2 ; saved stack pointer for bailing out from random parse points + rmb 0x71-* ; align RSTFLG/RSTVEC for stock ROM compatibility +RSTFLG rmb 1 ; 0x55 if RSTVEC is valid +RSTVEC rmb 2 ; points to warm start routine (must start with NOP) +inputptr rmb 2 ; pointer to current program execution location ; 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 @@ -58,10 +62,6 @@ fpa0 rmb fpa.size ; floating point accumulator 1 fpa1 rmb fpa.size ; floating point accumulator 1 fpaextra rmb 12 ; "extra" bytes for calculations - rmb 0x71-* ; align RSTFLG/RSTVEC for stock ROM compatibility -RSTFLG rmb 1 ; 0x55 if RSTVEC is valid -RSTVEC rmb 2 ; points to warm start routine (must start with NOP) -inputptr rmb 2 ; pointer to current program execution location rmb 0x100-* ; make sure the stuff that isn't direct page is outside of it SW3VEC rmb 3 ; SWI3 vector (for compatibility) SW2VEC rmb 3 ; SWI2 vector (for compatibility)