From 8e0aeabc079346930c9d92352c9587880554a281 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 15 Jan 2024 17:59:46 +0100 Subject: [PATCH] Baka baka Erin, when you decode RRB, you have to bump it by RRB! --- 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 2edc880..6c12268 100644 --- a/hbvm/src/vmrun.rs +++ b/hbvm/src/vmrun.rs @@ -482,7 +482,7 @@ where unsafe fn binary_op_ims(&mut self, op: impl Fn(T, u32) -> T) { let OpsRRB(tg, reg, imm) = unsafe { self.decode() }; self.write_reg(tg, op(self.read_reg(reg).cast::(), imm.into())); - self.bump_pc::(); + self.bump_pc::(); } /// Fused division-remainder