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; } }
private void EndStep() { _mmuByteProvider.InvokeChanged(); InvalidateHexBox?.Invoke(); if (TrackPc) { FocusHexBox?.Invoke(_console.Cpu.PC); } Current = new CpuStateViewModel(_console.Cpu); NotifyAll(); ProgressVisible = false; EnableDebugger = true; }