From 818314a6fd27238eb446b2432069812470dc0694 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 2 Jun 2022 22:13:00 -0700 Subject: [PATCH] GBA I/O: SOUNDBIAS is readable when sound is off (fixes #2541) --- src/gba/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/io.c b/src/gba/io.c index 14c05b0f5..34e7471bb 100644 --- a/src/gba/io.c +++ b/src/gba/io.c @@ -878,7 +878,6 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) { case REG_SOUND4CNT_LO: case REG_SOUND4CNT_HI: case REG_SOUNDCNT_LO: - case REG_SOUNDBIAS: if (!GBAudioEnableIsEnable(gba->memory.io[REG_SOUNDCNT_X >> 1])) { // TODO: Is writing allowed when the circuit is disabled? return 0; @@ -898,6 +897,7 @@ uint16_t GBAIORead(struct GBA* gba, uint32_t address) { case REG_BLDALPHA: case REG_SOUNDCNT_HI: case REG_SOUNDCNT_X: + case REG_SOUNDBIAS: case REG_DMA0CNT_HI: case REG_DMA1CNT_HI: case REG_DMA2CNT_HI: