all repos — mgba @ 781f3f76f1cee98e68ae43c737a2cae4e97ab372

mGBA Game Boy Advance Emulator

GB: Fix some initializations
Jeffrey Pfau jeffrey@endrift.com
Wed, 20 Jan 2016 20:10:00 -0800
commit

781f3f76f1cee98e68ae43c737a2cae4e97ab372

parent

cbad932f45ca2cda872c3e5c1b6c2963c15662f9

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/gb/memory.csrc/gb/memory.c

@@ -62,6 +62,7 @@ }

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_SIZE_CART_BANK0]; + gb->memory.currentBank = 1; const struct GBCartridge* cart = &gb->memory.rom[0x100]; switch (cart->type) {
M src/lr35902/lr35902.csrc/lr35902/lr35902.c

@@ -66,6 +66,7 @@ cpu->nextEvent = 0;

cpu->executionState = LR35902_CORE_FETCH; cpu->halted = 0; + cpu->irqPending = false; cpu->irqh.reset(cpu); }