From 29e6d5e1d5e47966d40f27d19e54a0a1d63ad56a Mon Sep 17 00:00:00 2001 From: pjgat09 Date: Fri, 11 Mar 2016 10:50:03 -0500 Subject: [PATCH] Atari 2600: Fixed an off by one bug with the 6532 --- BizHawk.Emulation.Cores/Consoles/Atari/2600/M6532.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/2600/M6532.cs b/BizHawk.Emulation.Cores/Consoles/Atari/2600/M6532.cs index f6a4687c4f..f7c854c0b4 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/2600/M6532.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/2600/M6532.cs @@ -112,7 +112,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 // Write to Timer/1 Timer.PrescalerShift = 0; Timer.Value = value; - Timer.PrescalerCount = 1 << Timer.PrescalerShift; + Timer.PrescalerCount = 0; Timer.InterruptFlag = false; } else if (registerAddr == 0x05) @@ -120,7 +120,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 // Write to Timer/8 Timer.PrescalerShift = 3; Timer.Value = value; - Timer.PrescalerCount = 1 << Timer.PrescalerShift; + Timer.PrescalerCount = 0; Timer.InterruptFlag = false; } else if (registerAddr == 0x06) @@ -128,7 +128,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 // Write to Timer/64 Timer.PrescalerShift = 6; Timer.Value = value; - Timer.PrescalerCount = 1 << Timer.PrescalerShift; + Timer.PrescalerCount = 0; Timer.InterruptFlag = false; } else if (registerAddr == 0x07) @@ -136,7 +136,7 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 // Write to Timer/1024 Timer.PrescalerShift = 10; Timer.Value = value; - Timer.PrescalerCount = 1 << Timer.PrescalerShift; + Timer.PrescalerCount = 0; Timer.InterruptFlag = false; } }