1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00

Merge pull request #574 from prandeamus/paravirt-fix

Call ParaVirtHooks on JMP (indirect)
This commit is contained in:
Oliver Schmidt 2018-01-15 08:37:32 +00:00 committed by GitHub
commit ed3546d8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1266,6 +1266,8 @@ static void OPC_6502_6C (void)
Cycles = 6;
Regs.PC = MemReadWord(Lo);
}
ParaVirtHooks (&Regs);
}
@ -1276,6 +1278,8 @@ static void OPC_65C02_6C (void)
/* 6502 bug fixed here */
Cycles = 5;
Regs.PC = MemReadWord (MemReadWord (Regs.PC+1));
ParaVirtHooks (&Regs);
}
@ -1430,6 +1434,8 @@ static void OPC_65SC02_7C (void)
PC = Regs.PC;
Adr = MemReadWord (PC+1);
Regs.PC = MemReadWord(Adr+Regs.XR);
ParaVirtHooks (&Regs);
}