If-then-else is working with jump statements

This commit is contained in:
2022-08-20 12:38:29 +01:00
parent cbdfcbcc14
commit 975ed41d14
8 changed files with 223 additions and 2 deletions

View File

@@ -44,6 +44,10 @@ typedef enum Opcode {
OP_COMPARE_GREATER_EQUAL,
OP_INVERT, //for booleans
//jumps, and conditional jumps (absolute)
OP_JUMP,
OP_IF_FALSE_JUMP,
//meta
OP_SECTION_END,
//TODO: add more