Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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();
        }