diff --git a/emulator.c b/emulator.c index 9081085..e6a7c6b 100644 --- a/emulator.c +++ b/emulator.c @@ -76,8 +76,9 @@ void *iplThread(void *args) { printf("IPL thread running\n"); while (1) { - if (!gpio_get_irq() && irq == 0) { - irq = 1; + if (!gpio_get_irq()) { + if (irq == 0) + irq = 1; m68k_end_timeslice(); }