all repos — mgba @ 3e827c24a83a10b46202560276e8214b6510e8d0

mGBA Game Boy Advance Emulator

Fix 8-bit IO writes on SOUND3CNT_X
Jeffrey Pfau jeffrey@endrift.com
Wed, 09 Jul 2014 03:52:43 -0700
commit

3e827c24a83a10b46202560276e8214b6510e8d0

parent

78bd884a051ba4fdccc7f0cfd33b039b0363be1d

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-io.csrc/gba/gba-io.c

@@ -135,7 +135,8 @@ value &= 0xE000;

break; case REG_SOUND3CNT_X: GBAAudioWriteSOUND3CNT_X(&gba->audio, value); - value &= 0x4000; + // TODO: The low bits need to not be readable, but still 8-bit writable + value &= 0x43FF; break; case REG_SOUND4CNT_LO: GBAAudioWriteSOUND4CNT_LO(&gba->audio, value);