start of conditionals
This commit is contained in:
@@ -9,14 +9,16 @@ VMBL_Instruction program[] = {
|
||||
MAKE_INST_DUP(1),
|
||||
MAKE_INST_DUP(1),
|
||||
MAKE_INST_ADD,
|
||||
MAKE_INST_JMP(2)
|
||||
|
||||
MAKE_INST_JMP(2),
|
||||
};
|
||||
|
||||
int main() {
|
||||
VMBL_State vmblState = {};
|
||||
|
||||
VMBL_LoadExecutable(&vmblState, program, sizeof(program));
|
||||
//VMBL_SaveExecutable("fib.vmbl", program, sizeof(program));
|
||||
//VMBL_LoadExecutableFromFile(&vmblState, "fib.vmbl");
|
||||
VMBL_SaveExecutable("fib.vmbl", program, sizeof(program));
|
||||
VMBL_LoadExecutableFromFile(&vmblState, "fib.vmbl");
|
||||
VMBL_StartVM(&vmblState);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user