mirror of https://github.com/mgba-emu/mgba.git
LR35902: Fix RST return address
This commit is contained in:
parent
fe36ff1933
commit
0e4f64088c
|
@ -741,7 +741,7 @@ DEFINE_INSTRUCTION_LR35902(HALT, cpu->irqh.halt(cpu));
|
||||||
cpu->executionState = LR35902_CORE_STALL;) \
|
cpu->executionState = LR35902_CORE_STALL;) \
|
||||||
DEFINE_INSTRUCTION_LR35902(RST ## VEC ## UpdateSPH, \
|
DEFINE_INSTRUCTION_LR35902(RST ## VEC ## UpdateSPH, \
|
||||||
cpu->index = cpu->sp + 1; \
|
cpu->index = cpu->sp + 1; \
|
||||||
cpu->bus = (cpu->pc + 2) >> 8; \
|
cpu->bus = cpu->pc >> 8; \
|
||||||
cpu->executionState = LR35902_CORE_MEMORY_STORE; \
|
cpu->executionState = LR35902_CORE_MEMORY_STORE; \
|
||||||
cpu->instruction = _LR35902InstructionRST ## VEC ## UpdateSPL;) \
|
cpu->instruction = _LR35902InstructionRST ## VEC ## UpdateSPL;) \
|
||||||
DEFINE_INSTRUCTION_LR35902(RST ## VEC, \
|
DEFINE_INSTRUCTION_LR35902(RST ## VEC, \
|
||||||
|
|
Loading…
Reference in New Issue