Exemplo 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();
        }
Exemplo 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();
        }
Exemplo 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();
        }
Exemplo 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();
        }