From c370b3cd95f7002f6c51266165caaeae4e6e1982 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 12 Jun 1997 04:14:42 +0000 Subject: * simops.c: Fix thinko in last change. --- sim/mn10300/simops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/mn10300/simops.c') diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index d92cc43..239936a 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -2652,7 +2652,7 @@ void OP_DD000000 (insn, extension) } /* Update the stack pointer. */ - State.regs[REG_SP] = sp - extension; + State.regs[REG_SP] = sp - (extension & 0xff); State.regs[REG_MDR] = next_pc; State.regs[REG_PC] += (((insn & 0xffffff) << 8) | ((extension & 0xff0000) >> 16)) - 7; } -- cgit v1.1