diff options
Diffstat (limited to 'sim/mn10300/mn10300.igen')
-rw-r--r-- | sim/mn10300/mn10300.igen | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/mn10300/mn10300.igen b/sim/mn10300/mn10300.igen index 7c4f03d..1b42db4 100644 --- a/sim/mn10300/mn10300.igen +++ b/sim/mn10300/mn10300.igen @@ -3486,7 +3486,7 @@ PC = cia; State.regs[REG_SP] += IMM8; sp = State.regs[REG_SP]; - State.regs[REG_PC] = State.regs[REG_MDR] - 3; + State.regs[REG_PC] = State.regs[REG_MDR]; offset = -4; mask = REGS; @@ -3533,5 +3533,6 @@ State.regs[REG_LAR] = load_word (sp + offset); offset -= 4; } + nia = PC; } |