LR35902: Fix RST return address

This commit is contained in:
Jeffrey Pfau 2016-01-26 20:54:59 -08:00
parent fe36ff1933
commit 0e4f64088c
1 changed files with 1 additions and 1 deletions

View File

@ -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, \