private void button1_Click(object sender, EventArgs e) { ssm.Reset(); ssm.instructions.Clear(); ssm.Compile(textBox1.Text); begintime = InstructionUtils.GetTimestamp(); ssm.Run(); }
private void Button6_Click(object sender, EventArgs e) { try { resetMachine(); machine.instructions.Clear(); machine.Compile(txtCode.Text); tabControl1.SelectedIndex = 1; loadMachineData(); } catch (Exception ex) { MessageBox.Show(ex.Message, "编译错误,请检查代码"); } }
public ScriptedBomber(String script) { machine.Compile(script); machine.OnProgramPrint += Machine_OnProgramPrint; }