diff --git a/hbvm/src/vmrun.rs b/hbvm/src/vmrun.rs index 8062612c..2edc880f 100644 --- a/hbvm/src/vmrun.rs +++ b/hbvm/src/vmrun.rs @@ -132,10 +132,10 @@ where ADDI16 => self.binary_op_imm(u16::wrapping_add), ADDI32 => self.binary_op_imm(u32::wrapping_add), ADDI64 => self.binary_op_imm(u64::wrapping_add), - MULI8 => self.binary_op_imm(u8::wrapping_sub), - MULI16 => self.binary_op_imm(u16::wrapping_sub), - MULI32 => self.binary_op_imm(u32::wrapping_sub), - MULI64 => self.binary_op_imm(u64::wrapping_sub), + MULI8 => self.binary_op_imm(u8::wrapping_mul), + MULI16 => self.binary_op_imm(u16::wrapping_mul), + MULI32 => self.binary_op_imm(u32::wrapping_mul), + MULI64 => self.binary_op_imm(u64::wrapping_mul), ANDI => self.binary_op_imm::(ops::BitAnd::bitand), ORI => self.binary_op_imm::(ops::BitOr::bitor), XORI => self.binary_op_imm::(ops::BitXor::bitxor),