fix instruction loading i think

This commit is contained in:
2026-07-16 19:13:03 +10:00
parent 3bf340d9f2
commit c5fc6a8493
4 changed files with 5 additions and 4 deletions

View File

@@ -84,7 +84,11 @@ void startEmulator(Emulator* emu) {
#define DISPATCH() if (emu->irq != 0) handleInterrupt(emu); \
updateDevices(emu); \
if (emu->halted) { \
return; \
} \
inst = fetchInst(emu); \
printf("%s\n", instructionToCStr(inst)); \
goto *dispatchTable[inst.opcode]
DISPATCH();