Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            registros          = new TextBox[] { reg0, reg1, reg2, reg3, reg4, reg5, reg6, reg7 };
            machine            = new MaquinaTiny();
            puntosInterrupcion = new List <int>();
            archivoActual      = "";

            machine.LeerValorEvent            = LeerValor;
            machine.MostrarValorEvent         = MostrarValor;
            machine.ResultadoInstruccionEvent = SincronizarEstadoMaquina;
            machine.ActivarDepuracionEvent    = ActivarDepuracion;
            statusCPU = CPU.EjecucionStatus.HALT;
        }
Ejemplo n.º 2
0
 public CPU(MaquinaTiny m)
 {
     maquina   = m;
     registros = new int[REG_SIZE];
     Reset();
 }