public UnitàOperativa() { _sr = ShiftRegister.GetInstance(); _alu = ALU.GetInstance(); _busC = BusC.GetInstance(); _busB = BusB.GetInstance(); _registers = Registro.GetInstance(); _systemBus = BusDiSistema.GetInstance(); }
public static ALU GetInstance() { if (_alu != null) { return(_alu); } lock (Object) { if (_alu == null) { _alu = new ALU(); } } return(_alu); }
public void SetAlUoperand() { _alu = ALU.GetInstance(); _alu.OperandB = Dato; }