* simops.c: Fix "not1" and "set1".

This commit is contained in:
Jeff Law 1996-08-30 21:55:26 +00:00
parent 20dbcd5c31
commit 787d66bb4d
2 changed files with 4 additions and 2 deletions

View file

@ -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"

View file

@ -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);
}