all repos — mgba @ cfb0115c0efe5e328ad880ec6e090829f9615be7

mGBA Game Boy Advance Emulator

Commit unreadable sound memory for the sake of bitewise assignment
Jeffrey Pfau jeffrey@endrift.com
Sat, 19 Oct 2013 00:49:20 -0700
commit

cfb0115c0efe5e328ad880ec6e090829f9615be7

parent

4a0a46267318e19e747674695f04b759a2dda752

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

jump to
M src/gba/gba-io.csrc/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);