aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-08-30 21:55:26 +0000
committerJeff Law <law@redhat.com>1996-08-30 21:55:26 +0000
commit787d66bb4d1d8ded6de1a1f3bf7b3d32ec516b20 (patch)
tree00312e038b290efa353546cdef5109c6bace6ebe /sim/v850/simops.c
parent20dbcd5c31b6c11082ad91e83b29ef27b9b14aae (diff)
downloadfsf-binutils-gdb-787d66bb4d1d8ded6de1a1f3bf7b3d32ec516b20.zip
fsf-binutils-gdb-787d66bb4d1d8ded6de1a1f3bf7b3d32ec516b20.tar.gz
fsf-binutils-gdb-787d66bb4d1d8ded6de1a1f3bf7b3d32ec516b20.tar.bz2
* simops.c: Fix "not1" and "set1".
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 77d6949..5ab83dc 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);
}