mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-23 08:02:16 +00:00
Show NMI and INT interrupts in a special manner in the disassembler
This commit is contained in:
1 parent
1b14109e26
commit
ee5f38e76b
1 file changed
+3
-1
+3
-1
@@ -84,7 +84,9 @@ namespace Z80
|
||||
public string Disassemble(Z80 cpu)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(cpu);
|
||||
if (cpu.RESET.Lowered()) return string.Empty;
|
||||
if (cpu.RESET.Lowered()) return "(RESET)";
|
||||
if (cpu.TriggeredNMI) return "(NMI)";
|
||||
if (cpu.INT.Lowered() && cpu.IFF1) return $"(INT IM-{cpu.IM})";
|
||||
this._prefixCB = this._prefixDD = this._prefixED = this._prefixFD = false;
|
||||
return this.Disassemble(cpu, cpu.PC.Joined);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user