GBA Audio: Fix 8-bit writes to audio channel 3 frequency

This commit is contained in:
Jeffrey Pfau 2015-06-29 01:30:59 -07:00
parent 8a0c5b9a1f
commit 5f8548b8dc
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@ Bugfixes:
- GBA: Fix timing of reading from timer registers - GBA: Fix timing of reading from timer registers
- Util: Allow loading IPS patches that grow the ROM - Util: Allow loading IPS patches that grow the ROM
- GBA Audio: Fix sample order in audio channel 3 - GBA Audio: Fix sample order in audio channel 3
- GBA Audio: Fix 8-bit writes to audio channel 3 frequency
Misc: Misc:
- Qt: Handle saving input settings better - Qt: Handle saving input settings better
- Debugger: Free watchpoints in addition to breakpoints - Debugger: Free watchpoints in addition to breakpoints

View File

@ -333,7 +333,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
case REG_SOUND3CNT_X: case REG_SOUND3CNT_X:
GBAAudioWriteSOUND3CNT_X(&gba->audio, value); GBAAudioWriteSOUND3CNT_X(&gba->audio, value);
// TODO: The low bits need to not be readable, but still 8-bit writable // TODO: The low bits need to not be readable, but still 8-bit writable
value &= 0x43FF; value &= 0x47FF;
break; break;
case REG_SOUND4CNT_LO: case REG_SOUND4CNT_LO:
GBAAudioWriteSOUND4CNT_LO(&gba->audio, value); GBAAudioWriteSOUND4CNT_LO(&gba->audio, value);