From 99fdc4a8cacd226b18682e74eea5e1adf380a60b Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Wed, 21 Dec 2016 21:43:33 -0500 Subject: [PATCH] Intellivision timing fix --- .../Consoles/Intellivision/Intellivision.IEmulator.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs b/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs index 00c90127f8..91ace366c9 100644 --- a/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs +++ b/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs @@ -31,8 +31,8 @@ namespace BizHawk.Emulation.Cores.Intellivision // this timer tracks cycles stolen by the STIC during the visible part of the frame, quite a large number of them actually int delay_cycles = 0; int delay_timer = -1; - - _cpu.AddPendingCycles(14934 - 3791 - _cpu.GetPendingCycles()); + + _cpu.PendingCycles = (14934 - 3791 + _cpu.GetPendingCycles()); _stic.Sr1 = true; while (_cpu.GetPendingCycles() > 0) @@ -67,7 +67,8 @@ namespace BizHawk.Emulation.Cores.Intellivision _stic.Mobs(); _stic.Sr1 = false; - _cpu.AddPendingCycles(3791 - _cpu.GetPendingCycles()); + + _cpu.PendingCycles = (3791 + _cpu.GetPendingCycles()); while (_cpu.GetPendingCycles() > 0) {