1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +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
commit 1ce8225091
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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