From 9a4db4b03d36acfef246c950884080a91aed1625 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 15 Jan 2016 16:51:47 -0800 Subject: [PATCH] GB: Fix ROM bank initialization --- src/gb/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gb/memory.c b/src/gb/memory.c index bc96266de..d0aaacb16 100644 --- a/src/gb/memory.c +++ b/src/gb/memory.c @@ -46,7 +46,7 @@ void GBMemoryReset(struct GB* gb) { } gb->memory.wram = anonymousMemoryMap(GB_SIZE_WORKING_RAM); gb->memory.wramBank = &gb->memory.wram[GB_SIZE_WORKING_RAM_BANK0]; - gb->memory.romBank = &gb->memory.rom[GB_BASE_CART_BANK0]; + gb->memory.romBank = &gb->memory.rom[GB_SIZE_CART_BANK0]; if (!gb->memory.wram) { GBMemoryDeinit(gb);