private Breakpoint(int id, BreakpointType type) { this.ID = id; this.Type = type; this.Name = null; this.Mode = BreakpointMode.Break; this.Enabled = true; }
public static CpuOperation ToCpuOperation(this BreakpointMode source) { return(source switch { BreakpointMode.Exec => CpuOperation.Exec, BreakpointMode.Load => CpuOperation.Load, BreakpointMode.Store => CpuOperation.Store, _ => throw new ArgumentException($"Unknown {nameof(BreakpointMode)} {source}", nameof(source)), });
public BreakpointViewModel(uint checkpointNumber, bool stopWhenHit, bool isEnabled, BreakpointMode mode, AcmeLine?line, int?lineNumber, AcmeFile?file, AcmeLabel?label, ushort startAddress, ushort endAddress, string?condition) { CheckpointNumber = checkpointNumber; StopWhenHit = stopWhenHit; IsEnabled = isEnabled; Mode = mode; Line = line; LineNumber = lineNumber; File = file; Label = label; StartAddress = startAddress; EndAddress = endAddress; Condition = condition; }
private Breakpoint( int id, BreakpointType type ) { this.ID = id; this.Type = type; this.Name = null; this.Mode = BreakpointMode.Break; this.Enabled = true; }