From 576f607c81f719faff4df346d0b495ebb67bcff4 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 13 Dec 2022 15:18:21 -0800 Subject: [PATCH] GB IO: Fix BANK not getting initialized after recent change --- src/gb/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gb/io.c b/src/gb/io.c index 511989d0a..ba4473550 100644 --- a/src/gb/io.c +++ b/src/gb/io.c @@ -174,6 +174,7 @@ void GBIOReset(struct GB* gb) { } GBIOWrite(gb, GB_REG_WY, 0x00); GBIOWrite(gb, GB_REG_WX, 0x00); + gb->memory.io[GB_REG_BANK] = 0xFF; if (gb->model & GB_MODEL_CGB) { GBIOWrite(gb, GB_REG_KEY0, 0); GBIOWrite(gb, GB_REG_JOYP, 0xFF);