Baka baka Erin, when you decode RRB, you have to bump it by RRB!

trunk
Erin 2024-01-15 17:59:46 +01:00
parent a84e93d562
commit 8e0aeabc07
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ where
unsafe fn binary_op_ims<T: ValueVariant>(&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::<T>(), imm.into()));
self.bump_pc::<OpsRRW>();
self.bump_pc::<OpsRRB>();
}
/// Fused division-remainder