fix for LASTx/RCL behavior after operation

- previously "2 enter 3 * LASTx" would overwrite X instead of lifting
stack
This commit is contained in:
Jeff Wang 2019-10-22 02:23:30 -04:00
parent 56e3034f9d
commit ada1102258
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ void process_cmd(char cmd){
//////////
case '+':{
if (IsShifted){ // LastX
if (NoLift == 2){
if (NoLift != 1){
StackPtr--;
}
copy_decn(&stack(STACK_X), &LastX);
@ -112,7 +112,7 @@ void process_cmd(char cmd){
//////////
case '=':{
if (IsShifted){ //RCL
if (NoLift == 2){
if (NoLift != 1){
StackPtr--;
}
copy_decn(&stack(STACK_X), &StoredDecn);

View File

@ -125,7 +125,7 @@ static void latch_on(void)
__xdata char EntryBuf[MAX_CHARS_PER_LINE + 1];
__xdata uint8_t ExpBuf[2];
__xdata const char VER_STR[32+1] = "STC RPN Calculator v1.06";
__xdata const char VER_STR[32+1] = "STC RPN Calculator v1.07";
enum {