From 8c86cff48631eeff387e4ee150533ae8f2a0d5d3 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 14 May 2022 01:33:45 +0300 Subject: [PATCH] Fix MBC5's initial state --- Core/mbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/mbc.c b/Core/mbc.c index a86f795..fe20b28 100644 --- a/Core/mbc.c +++ b/Core/mbc.c @@ -257,6 +257,7 @@ void GB_reset_mbc(GB_gameboy_t *gb) } else if (gb->cartridge_type->mbc_type == GB_MBC5) { gb->mbc5.rom_bank_low = 1; + gb->mbc_rom_bank = 1; } else if (gb->cartridge_type->mbc_type == GB_MBC7) { gb->mbc7.x_latch = gb->mbc7.y_latch = 0x8000;