public AndOperation(Machine parent, byte opcode) : base(parent) { source = BitsToRegister(opcode & 0b111); Cycles = source == OperationTarget8.M ? 7 : 4; }
public MoveOperation(Machine parent, byte opcode) : base(parent) { source = BitsToRegister(opcode & 0b111); target = BitsToRegister((opcode & 0b111000) >> 3); }
public ImmediateMoveOperation(Machine parent, byte opcode) : base(parent) { target = BitsToRegister((opcode & 0b111000) >> 3); Cycles = target == OperationTarget8.M ? 10 : 7; Length = 2; }
public SubOperation(Machine parent, byte opcode) : base(parent) { source = BitsToRegister(opcode & 0b111); subBorrow = (opcode & 0b1000) > 0; Cycles = source == OperationTarget8.M ? 7 : 4; }