Pressing PI (Shift ÷) should only lift the stack if the previous operation would allow it.

fixes #4
This commit is contained in:
toml12953 2022-04-21 05:43:29 -04:00 committed by Jeff Wang
parent c6901dc442
commit 9770525dba

View File

@ -128,7 +128,9 @@ void process_cmd(char cmd){
//////////
case '/':{
if (IsShiftedUp){
StackPtr--;
if (NoLift != 1){
StackPtr--;
}
pi_decn();
copy_decn(&stack(STACK_X), &AccDecn);
} else {