From 5123239fd267ac62784d25c97717dcf1ef8c6482 Mon Sep 17 00:00:00 2001 From: beeanyew Date: Sat, 20 Feb 2021 15:38:16 +0100 Subject: [PATCH] Update emulator.c --- emulator.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/emulator.c b/emulator.c index e6a7c6b..1e205b1 100644 --- a/emulator.c +++ b/emulator.c @@ -77,10 +77,12 @@ void *iplThread(void *args) { while (1) { if (!gpio_get_irq()) { - if (irq == 0) - irq = 1; + irq = 1; m68k_end_timeslice(); } + else { + irq = 0; + } if (gayle_ide_enabled) { if (((gayle_int & 0x80) || gayle_a4k_int) && (get_ide(0)->drive[0].intrq || get_ide(0)->drive[1].intrq)) { @@ -91,7 +93,7 @@ void *iplThread(void *args) { else gayleirq = 0; } - usleep(0); + //usleep(0); } return args; } -- 2.39.5