From 8c8c708279bdfb68364bc6021d72768df82338bb 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.