aboutsummaryrefslogtreecommitdiff
path: root/source/cpuexec.c
diff options
context:
space:
mode:
authortwinaphex2017-08-11 17:43:00 +0200
committertwinaphex2017-08-11 17:43:00 +0200
commitb9c74ceb1352c8f433cf6bf2c446ae07457c5267 (patch)
treeafd398fed3d08c81957373be55a12284cb932ab6 /source/cpuexec.c
parent1aecedc999445e9a27e04f665fd562b576775d08 (diff)
downloadsnes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.gz
snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.tar.bz2
snes9x2005-b9c74ceb1352c8f433cf6bf2c446ae07457c5267.zip
Start making this suitable for MSVC and C89
Diffstat (limited to 'source/cpuexec.c')
-rw-r--r--source/cpuexec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cpuexec.c b/source/cpuexec.c
index 98e321f..ef96339 100644
--- a/source/cpuexec.c
+++ b/source/cpuexec.c
@@ -366,9 +366,10 @@ void S9xDoHBlankProcessing_SFX()
if (!PPU.ForcedBlanking)
{
+ uint8_t tmp = 0;
+
PPU.OAMAddr = PPU.SavedOAMAddr;
- uint8_t tmp = 0;
if (PPU.OAMPriorityRotation)
tmp = (PPU.OAMAddr & 0xFE) >> 1;
if ((PPU.OAMFlip & 1) || PPU.FirstSprite != tmp)
@@ -499,9 +500,10 @@ void S9xDoHBlankProcessing_NoSFX()
if (!PPU.ForcedBlanking)
{
+ uint8_t tmp = 0;
+
PPU.OAMAddr = PPU.SavedOAMAddr;
- uint8_t tmp = 0;
if (PPU.OAMPriorityRotation)
tmp = (PPU.OAMAddr & 0xFE) >> 1;
if ((PPU.OAMFlip & 1) || PPU.FirstSprite != tmp)