diff --git a/src/sim65/paravirt.c b/src/sim65/paravirt.c index b3ec8fa37..7da683f1d 100644 --- a/src/sim65/paravirt.c +++ b/src/sim65/paravirt.c @@ -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; }