From cab8bea24419e56c4ed96eeeaf5911f0a5e69d7c Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Sep 2016 23:44:46 -0700 Subject: [PATCH] GB: Prevent audio from playing on boot --- src/gb/io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gb/io.c b/src/gb/io.c index f79dd2647..0163fbdb7 100644 --- a/src/gb/io.c +++ b/src/gb/io.c @@ -117,22 +117,22 @@ void GBIOReset(struct GB* gb) { 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);