fix instruction loading i think
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user