From f639eeebb46cedcb1df1723e84159e599e059ffd 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