diff options
author | twinaphex | 2017-08-16 19:23:32 +0200 |
---|---|---|
committer | twinaphex | 2017-08-16 19:23:32 +0200 |
commit | 99aec328bd70fc74aae29d8c6ed29b29e18538a5 (patch) | |
tree | b3c8772c76e6b275e2c1689dc5111eeb9e6098b0 /source | |
parent | 232f8097145a9e93147893550528374052e5523d (diff) | |
download | snesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.gz snesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.tar.bz2 snesemu-99aec328bd70fc74aae29d8c6ed29b29e18538a5.zip |
buildfixes
Diffstat (limited to 'source')
-rw-r--r-- | source/apumem.h | 7 |
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)) { |