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:
commit
1ce8225091
@ -4104,7 +4104,7 @@ unsigned ExecuteInsn (void)
|
|||||||
PUSH (PCL);
|
PUSH (PCL);
|
||||||
PUSH (Regs.SR & ~BF);
|
PUSH (Regs.SR & ~BF);
|
||||||
SET_IF (1);
|
SET_IF (1);
|
||||||
if (CPU != CPU_6502)
|
if (CPU == CPU_65C02)
|
||||||
{
|
{
|
||||||
SET_DF (0);
|
SET_DF (0);
|
||||||
}
|
}
|
||||||
@ -4118,7 +4118,7 @@ unsigned ExecuteInsn (void)
|
|||||||
PUSH (PCL);
|
PUSH (PCL);
|
||||||
PUSH (Regs.SR & ~BF);
|
PUSH (Regs.SR & ~BF);
|
||||||
SET_IF (1);
|
SET_IF (1);
|
||||||
if (CPU != CPU_6502)
|
if (CPU == CPU_65C02)
|
||||||
{
|
{
|
||||||
SET_DF (0);
|
SET_DF (0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user