Show NMI and INT interrupts in a special manner in the disassembler

This commit is contained in:
Adrian Conlon committed 2026-09-21 22:35:13 +01:00
1 parent 1b14109e26
commit ee5f38e76b
1 file changed
+3 -1
+3 -1
View File
@@ -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);
}