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