From d25596712569a77903a05fbca67d363cab62d9e9 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 13 Nov 2023 00:21:12 +0100 Subject: [PATCH] Ehm? --- hbvm/src/vmrun.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbvm/src/vmrun.rs b/hbvm/src/vmrun.rs index 21525a9..56e7f42 100644 --- a/hbvm/src/vmrun.rs +++ b/hbvm/src/vmrun.rs @@ -242,7 +242,7 @@ where }), JMP => { let OpsO(off) = self.decode(); - self.pc = self.pc.wrapping_add(off); + self.pc = self.pc.wrapping_add(off).wrapping_add(1); } JAL => { // Jump and link. Save PC after this instruction to