Ejemplo n.º 1
0
        private void OnBreakpoint(object sender, BreakpointEventArgs e)
        {
            var result = MessageBox.Show($"Pause execution at 0x{e.PC:X4}?", "Breakpoint hit",
                                         MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                FocusHexBox?.Invoke(_console.Cpu.PC);
                _cancel = true;
            }
        }
Ejemplo n.º 2
0
        private void EndStep()
        {
            _mmuByteProvider.InvokeChanged();
            InvalidateHexBox?.Invoke();
            if (TrackPc)
            {
                FocusHexBox?.Invoke(_console.Cpu.PC);
            }
            Current = new CpuStateViewModel(_console.Cpu);
            NotifyAll();

            ProgressVisible = false;
            EnableDebugger  = true;
        }