This commit is contained in:
2026-06-21 16:13:00 +10:00
parent ff98aa63b4
commit b2f6883e62
10 changed files with 351 additions and 42 deletions

View File

@@ -24,10 +24,14 @@ int64_t _GroundBytecodeInstructionExecute(GroundBytecodeInstruction* instruction
goto *jumpTable[instruction->type];
IF: {
GroundValue* cond = Ground.Bytecode.Heap.get(heap, instruction->args.at[0]);
if (cond->as.Bool) {
return instruction->args.at[1];
}
return -1;
}
JUMP: {
return -1;
return instruction->args.at[0];
}
END: {
return -2;