summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-21 21:00:25 +0100
committertaitep <taitep@taitep.se>2025-12-21 21:00:25 +0100
commit209e44ae64a1af10063b1c589377e136c644ec8f (patch)
tree61f91fa90cac131256738304bee3f4e58b4a7d01 /src/instructions.rs
parent5b2d6a1af085711e26ee8cb193b5e0a7f46b2b2b (diff)
Implement LD and BNE
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs
index e72dfb5..a2edc53 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -35,11 +35,13 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
// LOAD
0b000 => Some(rvi::lb(core, instr)),
0b100 => Some(rvi::lbu(core, instr)),
+ 0b011 => Some(rvi::ld(core, instr)),
_ => None,
},
0b11000 => match instr.funct3() {
// BRANCH
0b000 => Some(rvi::beq(core, instr)),
+ 0b001 => Some(rvi::bne(core, instr)),
_ => None,
},
0b01101 => Some(rvi::lui(core, instr)),