aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authortwinaphex2017-08-16 19:23:32 +0200
committertwinaphex2017-08-16 19:23:32 +0200
commit99aec328bd70fc74aae29d8c6ed29b29e18538a5 (patch)
treeb3c8772c76e6b275e2c1689dc5111eeb9e6098b0 /source
parent232f8097145a9e93147893550528374052e5523d (diff)
downloadsnesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.gz
snesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.bz2
snesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.zip
buildfixes
Diffstat (limited to 'source')
-rw-r--r--source/apumem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/apumem.h b/source/apumem.h
index c021e41..f39ff92 100644
--- a/source/apumem.h
+++ b/source/apumem.h
@@ -62,13 +62,16 @@ static INLINE void S9xAPUSetByteZ(uint8_t byte, uint8_t Address)
static INLINE uint8_t S9xAPUGetByte(uint32_t Address)
{
+ bool zero;
+ uint8_t t;
+
Address &= 0xffff;
if (Address == 0xf3)
return S9xGetAPUDSP();
- bool zero = (Address >= 0xfd && Address <= 0xff);
- uint8_t t = IAPU.RAM [Address];
+ zero = (Address >= 0xfd && Address <= 0xff);
+ t = IAPU.RAM [Address];
if (zero || (Address >= 0xf4 && Address <= 0xf7))
{