From ac25842689f85f502e06f733a4f503e6a70e6dcb Mon Sep 17 00:00:00 2001 From: Asnivor Date: Wed, 9 Oct 2024 08:26:26 +0100 Subject: [PATCH] [CPCHawk] FloohZ80 Fix interrupt tracelogger reporting --- .../Computers/AmstradCPC/Hardware/LibFz80.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/Hardware/LibFz80.cs b/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/Hardware/LibFz80.cs index 726755741a..f6f4e18390 100644 --- a/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/Hardware/LibFz80.cs +++ b/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/Hardware/LibFz80.cs @@ -177,12 +177,12 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC public void ExecuteOne() { - if (INT == 1 && Z80.iff1 > 0) + if (INT == 1 && Z80.iff1 == 0 && Z80.iff2 == 0) { TraceCallback?.Invoke(new(disassembly: "====IRQ====", registerInfo: string.Empty)); } - if (NMI == 1) + if (NMI == 1 && Z80.iff1 == 0 && Z80.iff2 == 0) { TraceCallback?.Invoke(new(disassembly: "====NMI====", registerInfo: string.Empty)); }