GBA I/O: SOUNDBIAS is readable when sound is off (fixes #2541)

This commit is contained in:
Vicki Pfau 2022-06-02 22:13:00 -07:00
parent 0a674dd377
commit 818314a6fd
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,6 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
case REG_SOUND4CNT_LO: case REG_SOUND4CNT_LO:
case REG_SOUND4CNT_HI: case REG_SOUND4CNT_HI:
case REG_SOUNDCNT_LO: case REG_SOUNDCNT_LO:
case REG_SOUNDBIAS:
if (!GBAudioEnableIsEnable(gba->memory.io[REG_SOUNDCNT_X >> 1])) { if (!GBAudioEnableIsEnable(gba->memory.io[REG_SOUNDCNT_X >> 1])) {
// TODO: Is writing allowed when the circuit is disabled? // TODO: Is writing allowed when the circuit is disabled?
return 0; return 0;
@ -898,6 +897,7 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) {
case REG_BLDALPHA: case REG_BLDALPHA:
case REG_SOUNDCNT_HI: case REG_SOUNDCNT_HI:
case REG_SOUNDCNT_X: case REG_SOUNDCNT_X:
case REG_SOUNDBIAS:
case REG_DMA0CNT_HI: case REG_DMA0CNT_HI:
case REG_DMA1CNT_HI: case REG_DMA1CNT_HI:
case REG_DMA2CNT_HI: case REG_DMA2CNT_HI: