private void RunButton_Click(object sender, EventArgs e) { MMIO.Clear(); while (!chip.Finished) { chip.EmulateSingleInstruction(); //DebugStep(); } Visualize(); }
private void BuildButton_Click(object sender, EventArgs e) { MMIO.Clear(); for (int i = 0; i < Controls.Count; i++) { if (Controls[i].Tag as string == "RemoveMe") { Controls.RemoveAt(i); break; } } fileComboBox.SelectedIndex = -1; System.IO.File.WriteAllText("temp.txt", codeTextBox.Text); helper = new MappingsHelper(System.IO.File.ReadAllLines("temp.txt")); Display("temp.txt"); }