From c62a840eb28278495c2c1bc622606f1f458fcdce Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 16 Sep 2023 00:57:37 +0200 Subject: [PATCH] JMP impl --- hbvm/src/vmrun.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/hbvm/src/vmrun.rs b/hbvm/src/vmrun.rs index 10f6057..b0b79d1 100644 --- a/hbvm/src/vmrun.rs +++ b/hbvm/src/vmrun.rs @@ -244,6 +244,7 @@ where usize::from(count), ); } + JMP => self.pc = Address::new(self.decode::()), JAL => { // Jump and link. Save PC after this instruction to // specified register and jump to reg + offset.