From c8f0171f5f72972a77e565adbe45aea7a14ab38f Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 2 Dec 1996 04:23:37 +0000 Subject: [PATCH] * simops.c: Fix "mov am, dn". Fixes more c-torture problems. --- sim/mn10300/ChangeLog | 2 ++ sim/mn10300/simops.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog index c3f3e375a1d..cd5d1fb1fe9 100644 --- a/sim/mn10300/ChangeLog +++ b/sim/mn10300/ChangeLog @@ -1,5 +1,7 @@ Sun Dec 1 16:05:42 1996 Jeffrey A Law (law@cygnus.com) + * simops.c: Fix "mov am, dn". + * simops.c: Fix more bugs in "add imm,an" and "add imm,dn". diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index e2f1ffded06..b4e30143abc 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -77,7 +77,7 @@ void OP_80 () /* mov dm, an */ void OP_F1E0 () { - State.regs[REG_A0 + ((insn & 0xc) >> 2)] = State.regs[REG_D0 + (insn & 0x3)]; + State.regs[REG_A0 + (insn & 0x3)] = State.regs[REG_D0 + ((insn & 0xc) >> 3)]; } /* mov am, dn */ -- 2.30.2