fix for LASTx/RCL behavior after operation
- previously "2 enter 3 * LASTx" would overwrite X instead of lifting stack
This commit is contained in:
parent
56e3034f9d
commit
ada1102258
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user