GB IO: Fix BANK not getting initialized after recent change

This commit is contained in:
Vicki Pfau 2022-12-13 15:18:21 -08:00
parent b3f9d9b186
commit ab82b2c856
1 changed files with 1 additions and 0 deletions

View File

@ -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);