From 67e4e10f8b9422b3eceb1d561ca9ff3530f00a9e Mon Sep 17 00:00:00 2001 From: aliaspider Date: Mon, 3 Nov 2014 11:38:35 +0100 Subject: blargg's apu implementation can now be used. --- source/ppu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/ppu.c') 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: -- cgit v1.2.3