Flexible profile enable for 6809

This commit is contained in:
Adrian Conlon committed 2026-06-15 13:56:00 +01:00
1 parent eab192a787
commit 148fb97013
2 files changed
+11 -5

No files matched your search

+8 -4
View File
@@ -91,7 +91,8 @@ namespace MC6809.Test
public override void LowerPOWER()
{
////this._profiler.Generate();
if (this._configuration.Profile)
this._profiler.Generate();
this.ACIA.LowerPOWER();
this.CPU.LowerPOWER();
@@ -122,7 +123,7 @@ namespace MC6809.Test
// Marshal data from memory -> ACIA
this.CPU.WrittenMemory += Board_WrittenByte;
if (this._configuration.DebugMode)
if (this._configuration.Debug)
{
// MC6809 disassembly wiring
this.CPU.ExecutingInstruction += CPU_ExecutingInstruction;
@@ -135,8 +136,11 @@ namespace MC6809.Test
this.CPU.ExecutedInstruction += CPU_ExecutedInstruction_Termination;
}
////this._profiler.Enable();
////this._profiler.EmitLine += this.Profiler_EmitLine;
if (this._configuration.Profile)
{
this._profiler.Enable();
this._profiler.EmitLine += this.Profiler_EmitLine;
}
}
private void Board_ReadingByte(object? sender, EventArgs e)
+3 -1
View File
@@ -9,7 +9,9 @@ namespace EightBit
public static readonly ulong CyclesPerSecond = 2 * 1024 * 1024;
public static readonly ulong FrameCycleInterval = CyclesPerSecond / 60;
public bool DebugMode { get; set; } = false;
public bool Debug { get; set; } = false;
public bool Profile { get; set; } = false;
public bool TerminatesEarly { get; } = true;