From 99aec328bd70fc74aae29d8c6ed29b29e18538a5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 16 Aug 2017 19:23:32 +0200 Subject: buildfixes --- source/apumem.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source') 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)) { -- cgit v1.2.3