made and and or operators short circuits

This commit is contained in:
cozis
2022-08-13 23:37:22 +02:00
parent 8565722bab
commit d24877c5f3
9 changed files with 240 additions and 120 deletions
+8 -2
View File
@@ -4,9 +4,15 @@
1 and 2;
#bytecode
PUSHINT 1;
JUMPIFNOTANDPOP false;
PUSHINT 2;
AND;
JUMPIFNOTANDPOP false;
PUSHTRU;
JUMP end;
false:
PUSHFLS;
end:
POP 1;
RETURN 0;