summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-22 19:25:19 +0100
committertaitep <taitep@taitep.se>2025-12-22 19:25:19 +0100
commit1ddda6614a929ea141755d20a09f564d80e63b99 (patch)
tree614ddd11e2915b46cfe70addf242dec84db36691 /src/instructions.rs
parentff161a69e6ae5bc63e3152eda1508db05e8a33ba (diff)
Implement AND and improve formatting and ordering in rvi.rs
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 c9c1c52..3096ed0 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -16,6 +16,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
0b01100 => match (instr.funct7(), instr.funct3()) {
// OP
(0b0000000, 0b000) => Some(rvi::add(core, instr)),
+ (0b0000000, 0b111) => Some(rvi::and(core, instr)),
_ => None,
},
0b00100 => match instr.funct3() {