From 7127c130bc477bde86d4129873cc319ca261211a Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Tue, 7 Mar 2017 22:57:09 -0500 Subject: [PATCH] Update PPU.regs.cs --- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.regs.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.regs.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.regs.cs index d81f56fd4f..1aa7c5870e 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.regs.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/PPU.regs.cs @@ -443,15 +443,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES { if (ppur.status.sl < 241) { - if (ppur.status.cycle < 64) + if (ppur.status.cycle <= 64) { ret = 0xFF; // during this time all reads return FF } - else if (ppur.status.cycle < 256) + else if (ppur.status.cycle <= 256) { ret = read_value; } - else if (ppur.status.cycle < 320) + else if (ppur.status.cycle <= 320) { ret = read_value; } @@ -815,4 +815,4 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES //Palette Gaps and Mirrors // 3F04h,3F08h,3F0Ch - Three general purpose 6bit data registers. // 3F10h,3F14h,3F18h,3F1Ch - Mirrors of 3F00h,3F04h,3F08h,3F0Ch. -// 3F20h-3FFFh - Mirrors of 3F00h-3F1Fh. \ No newline at end of file +// 3F20h-3FFFh - Mirrors of 3F00h-3F1Fh.