Fix 8-bit IO writes on SOUND3CNT_X
Jeffrey Pfau jeffrey@endrift.com
Wed, 09 Jul 2014 03:52:43 -0700
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-io.c
→
src/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);