LR35902: Fix RST return address
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 20:54:59 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/lr35902/isa-lr35902.c
→
src/lr35902/isa-lr35902.c
@@ -741,7 +741,7 @@ cpu->pc = 0x ## VEC; \
cpu->executionState = LR35902_CORE_STALL;) \ DEFINE_INSTRUCTION_LR35902(RST ## VEC ## UpdateSPH, \ cpu->index = cpu->sp + 1; \ - cpu->bus = (cpu->pc + 2) >> 8; \ + cpu->bus = cpu->pc >> 8; \ cpu->executionState = LR35902_CORE_MEMORY_STORE; \ cpu->instruction = _LR35902InstructionRST ## VEC ## UpdateSPL;) \ DEFINE_INSTRUCTION_LR35902(RST ## VEC, \