public ArithmeticLogicUnit( IByteXOr byteXOr, IByteOr byteOr, IByteAnd byteAnd, IInverter inverter, IByteAdder byteAdder, IByteEnabler byteEnabler, IAnd and, IIsZeroGate isZeroGate, IByteDecoder byteDecoder, IRightByteShifter rightByteShifter, ILeftByteShifter leftByteShifter, IOr or, IAluWire aluWire, IByteComparator byteComparator, Action <Caez> updateFlags, Action <IByte> updateAcc, IByteFactory byteFactory) { _byteXOr = byteXOr; _byteOr = byteOr; _byteAnd = byteAnd; _inverter = inverter; _byteAdder = byteAdder; _byteEnabler = byteEnabler; _and = and; _isZeroGate = isZeroGate; _byteDecoder = byteDecoder; _rightByteShifter = rightByteShifter; _leftByteShifter = leftByteShifter; _or = or; _aluWire = aluWire; _byteComparator = byteComparator; _updateFlags = updateFlags; _updateAcc = updateAcc; InputA = byteFactory.Create(); InputB = byteFactory.Create(); Op = new Op(); }
public LeftShifter(ByteFactory byteFactory, ILeftByteShifter leftByteShifter) : base(byteFactory) { _leftByteShifter = leftByteShifter; }