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

            return(_alu);
        }
Exemple #3
0
 public void SetAlUoperand()
 {
     _alu          = ALU.GetInstance();
     _alu.OperandB = Dato;
 }