mirror of https://github.com/mgba-emu/mgba.git
Fix 8-bit IO writes on SOUND3CNT_X
This commit is contained in:
parent
78bd884a05
commit
3e827c24a8
|
@ -135,7 +135,8 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue