fix file loading
This commit is contained in:
@@ -53,6 +53,7 @@ uint32_t memorySerializeInst(Memory* m, Instruction inst, uint32_t offset) {
|
||||
void memoryLoadProgram(Memory* m, Instruction program[], size_t numInstructions) {
|
||||
size_t offset = 0;
|
||||
for (size_t i = 0; i < numInstructions; i++) {
|
||||
printf("%zu. %s\n", i, instructionToCStr(program[i]));
|
||||
offset = memorySerializeInst(m, program[i], offset);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user