private void btnBreakOnIP_Click(object sender, EventArgs e) { NumberDialog dlg = new NumberDialog(); dlg.DialogCaption = "Break on IP"; dlg.TextBoxCaption = "IP:"; if(dlg.ShowDialog(this) == DialogResult.OK) { int stopIP = dlg.Result; do { _cpu.NextInstruction(); } while (_cpu.Bus.IP != stopIP); } UpdateDisplay(); }
private void btnBreakOnIP_Click(object sender, EventArgs e) { NumberDialog dlg = new NumberDialog(); dlg.DialogCaption = "Break on IP"; dlg.TextBoxCaption = "IP:"; if (dlg.ShowDialog(this) == DialogResult.OK) { int stopIP = dlg.Result; do { _cpu.NextInstruction(); } while (_cpu.Bus.IP != stopIP); } UpdateDisplay(); }
private void btnRunN_Click(object sender, EventArgs e) { NumberDialog dlg = new NumberDialog(); dlg.DialogCaption = "Run X Instructions"; dlg.TextBoxCaption = "Count:"; dlg.DefaultValue = _lastEntry; if (dlg.ShowDialog(this) == DialogResult.OK) { long startCount = _cpu.EU.Stats.InstructionCount; long stopCount = startCount + dlg.Result; do { _cpu.NextInstruction(); } while (_cpu.EU.Stats.InstructionCount < stopCount); } _lastEntry = dlg.DefaultValue; UpdateDisplay(); }