From 96ca86ed9035da5a6c060a74c184e6c5cdeaac53 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 20 Feb 2016 02:09:47 -0800 Subject: [PATCH] LR35902: RST should set active region --- src/lr35902/isa-lr35902.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lr35902/isa-lr35902.c b/src/lr35902/isa-lr35902.c index ef731e1e5..dbf8651f0 100644 --- a/src/lr35902/isa-lr35902.c +++ b/src/lr35902/isa-lr35902.c @@ -745,6 +745,7 @@ DEFINE_INSTRUCTION_LR35902(HALT, cpu->irqh.halt(cpu)); cpu->index = cpu->sp; \ cpu->bus = cpu->pc; \ cpu->pc = 0x ## VEC; \ + cpu->memory.setActiveRegion(cpu, cpu->pc); \ cpu->executionState = LR35902_CORE_MEMORY_STORE; \ cpu->instruction = _LR35902InstructionNOP;) \ DEFINE_INSTRUCTION_LR35902(RST ## VEC ## UpdateSPH, \