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