Commit unreadable sound memory for the sake of bitewise assignment
Jeffrey Pfau jeffrey@endrift.com
Sat, 19 Oct 2013 00:49:20 -0700
1 files changed,
2 insertions(+),
4 deletions(-)
jump to
M
src/gba/gba-io.c
→
src/gba/gba-io.c
@@ -26,19 +26,17 @@ value &= 0x00FF;
break; case REG_SOUND1CNT_HI: GBAAudioWriteSOUND1CNT_HI(&gba->audio, value); - value &= 0xFFC0; break; case REG_SOUND1CNT_X: GBAAudioWriteSOUND1CNT_X(&gba->audio, value); - value &= 0x4000; + value &= 0x47FF; break; case REG_SOUND2CNT_LO: GBAAudioWriteSOUND2CNT_LO(&gba->audio, value); - value &= 0xFFC0; break; case REG_SOUND2CNT_HI: GBAAudioWriteSOUND2CNT_HI(&gba->audio, value); - value &= 0x4000; + value &= 0x47FF; break; case REG_SOUND3CNT_LO: GBAAudioWriteSOUND3CNT_LO(&gba->audio, value);