mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-23 23:02:16 +00:00
Flexible profile enable for 6809
This commit is contained in:
1 parent
eab192a787
commit
148fb97013
2 files changed
+11
-5
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user