Debugger: SPC - Fixed "Break In" using CPU cycles in the SPC debugger
This commit is contained in:
parent
ad4cef9afa
commit
94b79c6527
2 changed files with 7 additions and 3 deletions
|
@ -14,10 +14,14 @@ namespace Mesen.GUI.Debugger
|
|||
{
|
||||
public partial class frmBreakIn : BaseConfigForm
|
||||
{
|
||||
public frmBreakIn()
|
||||
private CpuType _cpuType;
|
||||
|
||||
public frmBreakIn(CpuType cpuType)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
_cpuType = cpuType;
|
||||
|
||||
DebuggerInfo cfg = ConfigManager.Config.Debug.Debugger;
|
||||
nudCount.Value = cfg.BreakInCount;
|
||||
radCpuInstructions.Checked = cfg.BreakInMetric == BreakInMetric.CpuInstructions;
|
||||
|
@ -40,7 +44,7 @@ namespace Mesen.GUI.Debugger
|
|||
int count = (int)nudCount.Value;
|
||||
cfg.BreakInCount = (int)count;
|
||||
if(radCpuInstructions.Checked) {
|
||||
DebugApi.Step(count, StepType.CpuStep);
|
||||
DebugApi.Step(count, _cpuType == CpuType.Cpu ? StepType.CpuStep : StepType.SpcStep);
|
||||
cfg.BreakInMetric = BreakInMetric.CpuInstructions;
|
||||
} else if(radPpuCycles.Checked) {
|
||||
DebugApi.Step(count, StepType.PpuStep);
|
||||
|
|
|
@ -155,7 +155,7 @@ namespace Mesen.GUI.Debugger
|
|||
mnuFindNext.Click += (s, e) => { ctrlDisassemblyView.CodeViewer.FindNext(); };
|
||||
mnuFindPrev.Click += (s, e) => { ctrlDisassemblyView.CodeViewer.FindPrevious(); };
|
||||
|
||||
mnuBreakIn.Click += (s, e) => { using(frmBreakIn frm = new frmBreakIn()) { frm.ShowDialog(); } };
|
||||
mnuBreakIn.Click += (s, e) => { using(frmBreakIn frm = new frmBreakIn(_cpuType)) { frm.ShowDialog(); } };
|
||||
mnuBreakOn.Click += (s, e) => { using(frmBreakOn frm = new frmBreakOn()) { frm.ShowDialog(); } };
|
||||
|
||||
mnuIncreaseFontSize.Click += (s, e) => { ctrlDisassemblyView.CodeViewer.TextZoom += 10; };
|
||||
|
|
Loading…
Add table
Reference in a new issue