From ee5f38e76bc576c865c4a72b24dbdbc9e0b22bbf Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Mon, 21 Sep 2026 22:35:13 +0100 Subject: [PATCH] Show NMI and INT interrupts in a special manner in the disassembler --- Z80/Disassembler.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Z80/Disassembler.cs b/Z80/Disassembler.cs index 937a9e7..51737db 100644 --- a/Z80/Disassembler.cs +++ b/Z80/Disassembler.cs @@ -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); }