z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
State.regs[REG_D0 + (insn & 0x3)] = temp & 0xffffffff;
State.regs[REG_MDR] = temp & 0xffffffff00000000LL;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] = temp & 0xffffffff;
State.regs[REG_MDR] = temp & 0xffffffff00000000LL;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] = temp & 0xffffffff;
State.regs[REG_MDR] = temp & 0xffffffff00000000LL;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] = temp & 0xffffffff;
State.regs[REG_MDR] = temp & 0xffffffff00000000LL;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < reg2);
- v = ((reg2 & 0x8000000) != (reg1 & 0x80000000)
- && (reg2 & 0x8000000) != (value & 0x80000000));
+ v = ((reg2 & 0x80000000) != (reg1 & 0x80000000)
+ && (reg2 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
z = (value == 0);
n = (value & 0x80000000);
c = (reg1 < imm);
- v = ((imm & 0x8000000) != (reg1 & 0x80000000)
- && (imm & 0x8000000) != (value & 0x80000000));
+ v = ((reg1 & 0x80000000) != (imm & 0x80000000)
+ && (reg1 & 0x80000000) != (value & 0x80000000));
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | ( n ? PSW_N : 0)
State.regs[REG_D0 + (insn & 0x3)] &= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x300) >> 8)] &= (insn & 0xff);
z = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)] &= (insn & 0xffff);
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)]
&= ((insn & 0xffff) << 16 | extension);
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] |= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x300) >> 8)] |= insn & 0xff;
z = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)] |= insn & 0xffff;
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)]
|= ((insn & 0xffff) << 16 | extension);
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] ^= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)] ^= insn & 0xffff;
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x30000) >> 16)]
^= ((insn & 0xffff) << 16 | extension);
z = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x30000) >> 16)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] = ~State.regs[REG_D0 + (insn & 0x3)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
temp >>= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
State.regs[REG_D0 + (insn & 0x3)] = temp;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}
temp >>= (insn & 0xff);
State.regs[REG_D0 + ((insn & 0x300) >> 8)] = temp;
z = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}
State.regs[REG_D0 + (insn & 0x3)]
>>= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}
c = State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 1;
State.regs[REG_D0 + ((insn & 0x300) >> 8)] >>= (insn & 0xff);
z = (State.regs[REG_D0 + ((insn & 0x3) >> 8)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x3) >> 8)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x3) >> 8)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}
State.regs[REG_D0 + (insn & 0x3)]
<<= State.regs[REG_D0 + ((insn & 0xc) >> 2)];
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + ((insn & 0x300) >> 8)] <<= (insn & 0xff);
z = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] == 0);
- n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + ((insn & 0x300) >> 8)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
State.regs[REG_D0 + (insn & 0x3)] <<= 2;
z = (State.regs[REG_D0 + (insn & 0x3)] == 0);
- n = (State.regs[REG_D0 + (insn & 0x3)] & 0x8000000) != 0;
+ n = (State.regs[REG_D0 + (insn & 0x3)] & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0));
}
value |= ((PSW & PSW_C) != 0) ? 0x80000000 : 0;
State.regs[REG_D0 + (insn & 0x3)] = value;
z = (value == 0);
- n = (value & 0x8000000) != 0;
+ n = (value & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}
value |= ((PSW & PSW_C) != 0);
State.regs[REG_D0 + (insn & 0x3)] = value;
z = (value == 0);
- n = (value & 0x8000000) != 0;
+ n = (value & 0x80000000) != 0;
PSW &= ~(PSW_Z | PSW_N | PSW_C | PSW_V);
PSW |= ((z ? PSW_Z : 0) | (n ? PSW_N : 0) | (c ? PSW_C : 0));
}