From 787d66bb4d1d8ded6de1a1f3bf7b3d32ec516b20 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 30 Aug 1996 21:55:26 +0000 Subject: [PATCH] * simops.c: Fix "not1" and "set1". --- sim/v850/ChangeLog | 2 ++ sim/v850/simops.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index 436a83c116c..cfbb027fae7 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,5 +1,7 @@ Fri Aug 30 10:33:49 1996 Jeffrey A Law (law@cygnus.com) + * simops.c: Fix "not1" and "set1". + * simops.c: Don't forget to initialize temp for "ld.h" and "ld.w" diff --git a/sim/v850/simops.c b/sim/v850/simops.c index 77d6949e4aa..5ab83dca65d 100644 --- a/sim/v850/simops.c +++ b/sim/v850/simops.c @@ -1320,7 +1320,7 @@ OP_7C0 () State.sregs[5] &= ~PSW_Z; if ((temp & (1 << op1)) == 0) State.sregs[5] |= PSW_Z; - temp |= ~(1 << op1); + temp |= (1 << op1); put_byte (State.mem + op0 + op2, temp); } @@ -1340,7 +1340,7 @@ OP_47C0 () State.sregs[5] &= ~PSW_Z; if ((temp & (1 << op1)) == 0) State.sregs[5] |= PSW_Z; - temp ^= ~(1 << op1); + temp ^= (1 << op1); put_byte (State.mem + op0 + op2, temp); } -- 2.30.2