aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.c
diff options
context:
space:
mode:
authoraliaspider2014-11-03 11:38:35 +0100
committeraliaspider2014-11-03 11:38:35 +0100
commit67e4e10f8b9422b3eceb1d561ca9ff3530f00a9e (patch)
tree357f536bf431a60f2ea4a062fa329e0fd24d7be4 /source/ppu.c
parent7077e9821593b2c9b78830c4cc5055c6a79cdd69 (diff)
downloadsnes9x2005-67e4e10f8b9422b3eceb1d561ca9ff3530f00a9e.tar.gz
snes9x2005-67e4e10f8b9422b3eceb1d561ca9ff3530f00a9e.tar.bz2
snes9x2005-67e4e10f8b9422b3eceb1d561ca9ff3530f00a9e.zip
blargg's apu implementation can now be used.
Diffstat (limited to 'source/ppu.c')
-rw-r--r--source/ppu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/ppu.c b/source/ppu.c
index bc28114..03b8949 100644
--- a/source/ppu.c
+++ b/source/ppu.c
@@ -898,6 +898,8 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
IAPU.WaitCounter++;
#endif
#endif // SPCTOOL
+#else
+ S9xAPUWritePort(Address & 3, Byte);
#endif // #ifndef USE_BLARGG_APU
break;
case 0x2180:
@@ -1323,6 +1325,9 @@ uint8 S9xGetPPU(uint16 Address)
return ((r >> 3) & 0xff);
}
return (Memory.FillRAM[Address]);
+
+#else
+ return (S9xAPUReadPort(Address & 3));
#endif // SPCTOOL
case 0x2180: