fixed bug without fixing anything

This commit is contained in:
anon
2024-07-29 02:42:58 +02:00
parent b9618d2183
commit e6d471e8bf
2 changed files with 2 additions and 2 deletions

@ -73,7 +73,7 @@ void add_logic(cpuregister_t * c1, cpuregister_t * c2, logic_t logic) {
case GREATER_THAN: instrunction = JNG; break;
default: issue_internal_error();
}
append_instructions(instrunction, D32, REL, if_stack[if_stack_empty_top]);
append_instructions(instrunction, D32, REL, if_stack[if_stack_empty_top-1]);
}
void add_repeat(void) {

@ -275,7 +275,7 @@ if_end: END_IF { fin_if(); }
;
if: if_start logic THEN code if_end
| if_start logic THEN code ELSE code END_IF
| if_start logic THEN code ELSE code if_end
;
logic: register '=' register {