From d186340218130671b309392c420f89d0abf4f623 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Sun, 21 Jan 2024 13:58:10 +0100 Subject: [PATCH] INT8 counter should count Interrupt activations and not PIT counter (which runs backward) --- .../Emulator/InterruptHandlers/Timer/TimerInt8Handler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Spice86.Core/Emulator/InterruptHandlers/Timer/TimerInt8Handler.cs b/src/Spice86.Core/Emulator/InterruptHandlers/Timer/TimerInt8Handler.cs index 72652db495..0a3fac55a4 100644 --- a/src/Spice86.Core/Emulator/InterruptHandlers/Timer/TimerInt8Handler.cs +++ b/src/Spice86.Core/Emulator/InterruptHandlers/Timer/TimerInt8Handler.cs @@ -36,8 +36,7 @@ public TimerInt8Handler(IMemory memory, Cpu cpu, DualPic dualPic, Timer timer, B /// public override void Run() { - long numberOfTicks = _timer.NumberOfTicks; - TickCounterValue = (uint)numberOfTicks; + TickCounterValue++; _dualPic.AcknowledgeInterrupt(0); }