From 31a754b2e65b611d4783a34ba6c68e85aea17328 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 13 Jun 2007 16:10:05 +0000 Subject: [PATCH] Raise INTFLAG_1HZ in RTCInterrupt() --- BasiliskII/src/MacOSX/Emulator.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/BasiliskII/src/MacOSX/Emulator.mm b/BasiliskII/src/MacOSX/Emulator.mm index a73dd7bd..c080ffc8 100644 --- a/BasiliskII/src/MacOSX/Emulator.mm +++ b/BasiliskII/src/MacOSX/Emulator.mm @@ -424,8 +424,13 @@ uint8 lastXPRAM[XPRAM_SIZE]; // Copy of PRAM - (void) RTCinterrupt { - if ( uaeCreated ) - WriteMacInt32 (0x20c, TimerDateTime() ); // Update MacOS time + if ( ! uaeCreated ) + return; + + WriteMacInt32 (0x20c, TimerDateTime() ); // Update MacOS time + + SetInterruptFlag(INTFLAG_1HZ); + TriggerInterrupt(); } - (void) redrawScreen