From 209e44ae64a1af10063b1c589377e136c644ec8f Mon Sep 17 00:00:00 2001 From: taitep Date: Sun, 21 Dec 2025 21:00:25 +0100 Subject: Implement LD and BNE --- 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 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 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)), -- cgit v1.2.3