Pressing PI (Shift ÷) should only lift the stack if the previous operation would allow it.
fixes #4
This commit is contained in:
parent
c6901dc442
commit
9770525dba
@ -128,7 +128,9 @@ void process_cmd(char cmd){
|
|||||||
//////////
|
//////////
|
||||||
case '/':{
|
case '/':{
|
||||||
if (IsShiftedUp){
|
if (IsShiftedUp){
|
||||||
|
if (NoLift != 1){
|
||||||
StackPtr--;
|
StackPtr--;
|
||||||
|
}
|
||||||
pi_decn();
|
pi_decn();
|
||||||
copy_decn(&stack(STACK_X), &AccDecn);
|
copy_decn(&stack(STACK_X), &AccDecn);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user