1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-15 21:27:43 +00:00

Merge pull request #2551 from sidneycadot/fix-interrupts-dflag

Fixed wrong clearing of D-flag on interrupts for sim65 with 6502X CPU.
This commit is contained in:
Bob Andrews
2024-12-02 00:19:55 +01:00
committed by GitHub

View File

@@ -4104,7 +4104,7 @@ unsigned ExecuteInsn (void)
PUSH (PCL);
PUSH (Regs.SR & ~BF);
SET_IF (1);
if (CPU != CPU_6502)
if (CPU == CPU_65C02)
{
SET_DF (0);
}
@@ -4118,7 +4118,7 @@ unsigned ExecuteInsn (void)
PUSH (PCL);
PUSH (Regs.SR & ~BF);
SET_IF (1);
if (CPU != CPU_6502)
if (CPU == CPU_65C02)
{
SET_DF (0);
}