stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user