all repos — mgba @ 57bdbcd91ebf6d7d1fdf6fed0149075759b9e7f7

mGBA Game Boy Advance Emulator

GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers
Jeffrey Pfau jeffrey@endrift.com
Mon, 14 Sep 2015 19:24:47 -0700
commit

57bdbcd91ebf6d7d1fdf6fed0149075759b9e7f7

parent

d07b4a4a7bc7ea5ccdb741c4b463482afcb77529

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

jump to
M CHANGESCHANGES

@@ -8,6 +8,7 @@ - GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded

- GBA: Deinit savegame when unloading a ROM - GBA: Fix BIOS check on big endian - Libretro: Fix a memory leak with the render buffer + - GBA Audio: Fix 8-bit writes to audio channel 3 and 4 registers Misc: - Qt: Window size command line options are now supported - Qt: Increase usability of key mapper
M src/gba/io.csrc/gba/io.c

@@ -328,7 +328,7 @@ value &= 0x00E0;

break; case REG_SOUND3CNT_HI: GBAAudioWriteSOUND3CNT_HI(&gba->audio, value); - value &= 0xE000; + value &= 0xE03F; break; case REG_SOUND3CNT_X: GBAAudioWriteSOUND3CNT_X(&gba->audio, value);

@@ -337,7 +337,7 @@ value &= 0x47FF;

break; case REG_SOUND4CNT_LO: GBAAudioWriteSOUND4CNT_LO(&gba->audio, value); - value &= 0xFF00; + value &= 0xFF3F; break; case REG_SOUND4CNT_HI: GBAAudioWriteSOUND4CNT_HI(&gba->audio, value);