mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Merge pull request #2547 from sidneycadot/fix-jmp-ind
Fixed the behavior of JMP (ind) in sim65 when it runs with the 6502X CPU type.
This commit is contained in:
commit
79e26c1bc5
@ -1964,9 +1964,7 @@ static void OPC_6502_6C (void)
|
||||
PC = Regs.PC;
|
||||
Lo = MemReadWord (PC+1);
|
||||
|
||||
if (CPU == CPU_6502)
|
||||
{
|
||||
/* Emulate the 6502 bug */
|
||||
/* Emulate the buggy 6502 behavior */
|
||||
Cycles = 5;
|
||||
Regs.PC = MemReadByte (Lo);
|
||||
Hi = (Lo & 0xFF00) | ((Lo + 1) & 0xFF);
|
||||
@ -1978,12 +1976,6 @@ static void OPC_6502_6C (void)
|
||||
Warning ("6502 indirect jump bug triggered at $%04X, ind addr = $%04X",
|
||||
PC, Lo);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Cycles = 6;
|
||||
Regs.PC = MemReadWord(Lo);
|
||||
}
|
||||
|
||||
ParaVirtHooks (&Regs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user