diff --git a/src/gb/io.c b/src/gb/io.c index 6b799913a..bcdee83da 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);