mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 01:31:55 +00:00
Merge pull request #2548 from sidneycadot/fix-branch-timings
Fixed clock-cycle timing of branch (Bxx) instructions.
This commit is contained in:
commit
918c39cbeb
@ -707,8 +707,9 @@ static unsigned HaveIRQRequest;
|
||||
unsigned char OldPCH; \
|
||||
++Cycles; \
|
||||
Offs = (signed char) MemReadByte (Regs.PC+1); \
|
||||
Regs.PC += 2; \
|
||||
OldPCH = PCH; \
|
||||
Regs.PC = (Regs.PC + 2 + (int) Offs) & 0xFFFF; \
|
||||
Regs.PC = (Regs.PC + (int) Offs) & 0xFFFF; \
|
||||
if (PCH != OldPCH) { \
|
||||
++Cycles; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user