public MainForm() { uiForm = new Form(); uiForm.ClientSize = new Size(640, 400); uiForm.FormBorderStyle = FormBorderStyle.FixedSingle; uiForm.MaximizeBox = false; uiForm.StartPosition = FormStartPosition.CenterScreen; uiForm.Text = "C# x86 Emulator"; timerTicks = 0; machine = new Machine(uiForm); Application.ApplicationExit += ApplicationApplicationExit; breakpoints.ItemAdded += BreakpointsItemAdded; breakpoints.ItemDeleted += BreakpointsItemDeleted; InitializeComponent(); PrintRegisters(); machineThread = new Thread(RunMachine); running = true; machineThread.Start(); machine.Start(); SetCPULabel(machine.CPU.InstructionText); PrintRegisters(); }
public MainForm() { uiForm = new Form(); uiForm.ClientSize = new Size(640, 400); uiForm.FormBorderStyle = FormBorderStyle.FixedSingle; uiForm.MaximizeBox = false; uiForm.StartPosition = FormStartPosition.CenterScreen; uiForm.Text = "C# x86 Emulator"; timerTicks = 0; machine = new Machine(uiForm); Application.ApplicationExit += ApplicationApplicationExit; breakpoints.ItemAdded += BreakpointsItemAdded; breakpoints.ItemDeleted += BreakpointsItemDeleted; InitializeComponent(); PrintRegisters(); machineThread = new Thread(RunMachine); running = true; machineThread.Start(); machine.Start(); SetCPULabel(machine.CPU.InstructionText); PrintRegisters(); }
private void RunToolStripMenuItemClick(object sender, EventArgs e) { runToolStripMenuItem.Enabled = false; stopToolStripMenuItem.Enabled = true; machine.Start(); }