From e5c531256689883ac37549b3b9b15c4bd4b003ff Mon Sep 17 00:00:00 2001 From: taitep Date: Tue, 30 Dec 2025 16:56:09 +0100 Subject: Implement MUL --- src/instructions.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/instructions.rs') diff --git a/src/instructions.rs b/src/instructions.rs index 2a2f6b0..d8e3ce2 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -8,6 +8,7 @@ mod macros; mod rvi; +mod rvm; use crate::{ core::Core, @@ -31,6 +32,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Result<(), E // OP (0b000, 0b0000000) => rvi::add(core, instr), (0b000, 0b0100000) => rvi::sub(core, instr), + (0b000, 0b0000001) => rvm::mul(core, instr), (0b010, 0b0000000) => rvi::slt(core, instr), (0b011, 0b0000000) => rvi::sltu(core, instr), (0b001, 0b0000000) => rvi::sll(core, instr), -- cgit v1.2.3