diff options
| author | taitep <taitep@taitep.se> | 2025-12-21 21:00:25 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-21 21:00:25 +0100 |
| commit | 209e44ae64a1af10063b1c589377e136c644ec8f (patch) | |
| tree | 61f91fa90cac131256738304bee3f4e58b4a7d01 /src/instructions.rs | |
| parent | 5b2d6a1af085711e26ee8cb193b5e0a7f46b2b2b (diff) | |
Implement LD and BNE
Diffstat (limited to 'src/instructions.rs')
| -rw-r--r-- | src/instructions.rs | 2 |
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)), |
