mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-24 14:05:42 +00:00
Simplify Z80 logging a little
This commit is contained in:
1 parent
740947a90a
commit
fe093a9748
3 files changed
+3
-14
No files matched your search
@@ -17,18 +17,6 @@
|
||||
set => this._context = value;
|
||||
}
|
||||
|
||||
public bool Debugging
|
||||
{
|
||||
get => this.Verbosity > ILogger.LogLevel.Information;
|
||||
set => throw new NotImplementedException("Derived from logging verbosity");
|
||||
}
|
||||
|
||||
public bool Strict
|
||||
{
|
||||
get => this.Debugging;
|
||||
set => throw new NotImplementedException("Derived from logging verbosity");
|
||||
}
|
||||
|
||||
public abstract void Log(string context, string message, ILogger.LogLevel level);
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -8,9 +8,9 @@
|
||||
|
||||
abstract LogLevel Verbosity { get; set; }
|
||||
|
||||
abstract bool Strict { get; set; }
|
||||
bool Debugging => this.Verbosity > ILogger.LogLevel.Information;
|
||||
|
||||
abstract bool Debugging { get; set; }
|
||||
bool Strict => this.Debugging;
|
||||
|
||||
abstract void Log(string context, string message, LogLevel level);
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace Z80
|
||||
public string Disassemble(Z80 cpu)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(cpu);
|
||||
if (cpu.RESET.Lowered()) return string.Empty;
|
||||
this._prefixCB = this._prefixDD = this._prefixED = this._prefixFD = false;
|
||||
return this.Disassemble(cpu, cpu.PC.Joined);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user