summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-30 17:27:42 +0100
committertaitep <taitep@taitep.se>2025-12-30 17:27:42 +0100
commit6a0e5e63c13c4cb480233106d2043f2706bd5183 (patch)
tree2116389facfeca734e86b6ce9ed87998449f2467 /src/instructions.rs
parente5c531256689883ac37549b3b9b15c4bd4b003ff (diff)
Implement DIV
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs
index d8e3ce2..90f2e28 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -40,6 +40,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Result<(), E
(0b101, 0b0100000) => rvi::sra(core, instr),
(0b111, 0b0000000) => rvi::and(core, instr),
(0b100, 0b0000000) => rvi::xor(core, instr),
+ (0b100, 0b0000001) => rvm::div(core, instr),
(0b110, 0b0000000) => rvi::or(core, instr),
_ => illegal(instr),
},