public Branch execute(Processor cpu) { cpu.flagOp1 = op1.get32(cpu); cpu.flagResult = (-cpu.flagOp1); op1.set32(cpu, cpu.flagResult); cpu.flagIns = UCodes.NEG32; cpu.flagStatus = OSZAPC; return Branch.None; }
public Branch execute(Processor cpu) { int shift = immb & (32 - 1); int reg0 = op1.get32(cpu); int res = (reg0 >>> shift) | (reg0 << (32 - shift)); op1.set32(cpu, res); boolean bit30 = (res & (1 << (32 - 2))) != 0; boolean bit31 = (res & (1 << (32 - 1))) != 0; if (shift > 0) { cpu.cf = bit31; cpu.of = bit30 ^ bit31; cpu.flagStatus &= NOFCF; } return Branch.None; }
public Branch execute(Processor cpu) { int shift = cpu.r_cl.get8() & 0x1f; if (shift != 0) { if (shift <= 16) { cpu.flagStatus = OSZPC; } else { cpu.flagStatus = SZP; cpu.of = false; cpu.cf = false; } cpu.af = false; cpu.flagOp1 = op1.get32(cpu); cpu.flagOp2 = shift; cpu.flagResult = (cpu.flagOp1 << cpu.flagOp2); op1.set32(cpu, cpu.flagResult); cpu.flagIns = UCodes.SHL32; } return Branch.None; }