all repos — mgba @ 4cb59a54859da3953d2b524e153b4896839ec168

mGBA Game Boy Advance Emulator

GB: Prevent audio from playing on boot
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Sep 2016 23:44:46 -0700
commit

4cb59a54859da3953d2b524e153b4896839ec168

parent

c706e73c51e70a3379f05ca7ec890d5c6be49894

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/gb/io.csrc/gb/io.c

@@ -117,22 +117,22 @@ GBIOWrite(gb, REG_TMA, 0);

GBIOWrite(gb, REG_TAC, 0); GBIOWrite(gb, REG_IF, 1); GBIOWrite(gb, REG_NR52, 0xF1); + GBIOWrite(gb, REG_NR14, 0xBF); GBIOWrite(gb, REG_NR10, 0x80); GBIOWrite(gb, REG_NR11, 0xBF); GBIOWrite(gb, REG_NR12, 0xF3); GBIOWrite(gb, REG_NR13, 0xF3); - GBIOWrite(gb, REG_NR14, 0xBF); + GBIOWrite(gb, REG_NR24, 0xBF); GBIOWrite(gb, REG_NR21, 0x3F); GBIOWrite(gb, REG_NR22, 0x00); - GBIOWrite(gb, REG_NR24, 0xBF); + GBIOWrite(gb, REG_NR34, 0xBF); GBIOWrite(gb, REG_NR30, 0x7F); GBIOWrite(gb, REG_NR31, 0xFF); GBIOWrite(gb, REG_NR32, 0x9F); - GBIOWrite(gb, REG_NR34, 0xBF); + GBIOWrite(gb, REG_NR44, 0xBF); GBIOWrite(gb, REG_NR41, 0xFF); GBIOWrite(gb, REG_NR42, 0x00); GBIOWrite(gb, REG_NR43, 0x00); - GBIOWrite(gb, REG_NR44, 0xBF); GBIOWrite(gb, REG_NR50, 0x77); GBIOWrite(gb, REG_NR51, 0xF3); GBIOWrite(gb, REG_LCDC, 0x91);