Exemplo n.º 1
0
 /// <summary>
 /// Updates local references incase new windows have been opened
 /// </summary>
 /// <param name="ioPortsForm"></param>
 /// <param name="registerForm"></param>
 /// <param name="memoryForm"></param>
 public void Update_References(IOPortsForm ioPortsForm, RegisterForm registerForm, MemoryForm memoryForm, BusForm busForm)
 {
     this.ioPortsForm  = ioPortsForm;
     this.registerForm = registerForm;
     this.memoryForm   = memoryForm;
     this.busForm      = busForm;
 }
Exemplo n.º 2
0
        //-------------------------CLOSE FORM HANDLERS--------------------//

        public void Close_FormBus(object sender, EventArgs e)
        {
            busForm = null;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mem"></param>
 /// <param name="regs"></param>
 /// <param name="mes"></param>
 /// <param name="ioPortsForm"></param>
 /// <param name="registerForm"></param>
 /// <param name="memoryForm"></param>
 public SimulatorForm(UInt16[] mem, int[] regs, TextBox mes, IOPortsForm ioPortsForm, RegisterForm registerForm, MemoryForm memoryForm, BusForm busForm)
 {
     InitializeComponent();
     Update_References(ioPortsForm, registerForm, memoryForm, busForm);
     instructionWorker = new Instruction();
     messages          = mes;
     mainMemory        = mem;
     registers         = regs;
     firstTime         = true;
     shouldStop        = false;
     period            = int.Parse(periodToolStripTextBox.Text);
 }