1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +00:00

Adjust Pop() sequencing in paravirt.c

This commit is contained in:
Matthew D. Steele
2022-01-08 16:24:40 -05:00
parent cf1bc4fad4
commit 92bfbeb8ab

View File

@@ -328,6 +328,5 @@ void ParaVirtHooks (CPURegs* Regs)
/* Simulate RTS */
unsigned lo = Pop(Regs);
unsigned hi = Pop(Regs);
Regs->PC = lo + (hi << 8) + 1;
Regs->PC = lo + (Pop(Regs) << 8) + 1;
}