From 8ee5c763bd3c4298f6fa1a94e37c29d58eeefe74 Mon Sep 17 00:00:00 2001 From: TomW Date: Sun, 9 Aug 2015 12:17:34 +0100 Subject: [PATCH] PIT now reloads the timer count when hardware triggered strobe completes - no longer causes the emulator to hang. --- src/pit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pit.c b/src/pit.c index 8b3b340..42d559d 100644 --- a/src/pit.c +++ b/src/pit.c @@ -252,6 +252,8 @@ static void pit_over(int t) pit_set_out(t, 1); } pit.thit[t] = 1; + pit.count[t] += 0xffff; + pit.c[t] += (int)((0xffff << TIMER_SHIFT) * PITCONST); break; } pit.running[t] = pit.enabled[t] && pit.using_timer[t];