all repos — mgba @ 0e4f64088cea1d1cc4722051433de40cad870aa4

mGBA Game Boy Advance Emulator

LR35902: Fix RST return address
Jeffrey Pfau jeffrey@endrift.com
Tue, 26 Jan 2016 20:54:59 -0800
commit

0e4f64088cea1d1cc4722051433de40cad870aa4

parent

fe36ff1933ab5c04b581f9513e01c13bf3b3c96f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/lr35902/isa-lr35902.csrc/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, \