From 609b01408b3635994c872d7b0a1cab1aa7b8350f Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 7 Oct 2016 13:59:00 -0400 Subject: [PATCH] Update APU.cs --- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/APU.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/APU.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/APU.cs index 97792dba5d..c457fbf240 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/APU.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/APU.cs @@ -799,7 +799,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES // calls from write take one less cycle, but start on a write instead of a read if (!apu.call_from_write) { - if (timer%2==1) + if (timer % 2 == 0) { delay = 3; } else @@ -808,7 +808,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES } } else { - if (timer % 2 == 1) + if (timer % 2 == 0) { delay = 2; } @@ -1456,4 +1456,4 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES sampleclock++; } } -} \ No newline at end of file +}