[CPCHawk] FloohZ80 Fix interrupt tracelogger reporting

This commit is contained in:
Asnivor 2024-10-09 08:26:26 +01:00
parent b85ddf0382
commit ac25842689
1 changed files with 2 additions and 2 deletions
src/BizHawk.Emulation.Cores/Computers/AmstradCPC/Hardware

View File

@ -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));
}