From 92bfbeb8abf85596a30a13d5af275b535d640dfe Mon Sep 17 00:00:00 2001 From: "Matthew D. Steele" Date: Sat, 8 Jan 2022 16:24:40 -0500 Subject: [PATCH] Adjust Pop() sequencing in paravirt.c --- src/sim65/paravirt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }