diff options
| author | taitep <taitep@taitep.se> | 2025-12-22 19:19:19 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-22 19:19:19 +0100 |
| commit | ff161a69e6ae5bc63e3152eda1508db05e8a33ba (patch) | |
| tree | 5a184eeac9a4daad8cbb28d0d0f066a488f9b2a9 /src/instructions.rs | |
| parent | e00103375ddf2ccece47a7db0ee5fca3fc3d3502 (diff) | |
Implement ADD
Diffstat (limited to 'src/instructions.rs')
| -rw-r--r-- | src/instructions.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs index a2edc53..c9c1c52 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -13,6 +13,11 @@ use crate::{ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<InstructionResult> { match instr.opcode_noncompressed() { + 0b01100 => match (instr.funct7(), instr.funct3()) { + // OP + (0b0000000, 0b000) => Some(rvi::add(core, instr)), + _ => None, + }, 0b00100 => match instr.funct3() { // OP_IMM 0b000 => Some(rvi::addi(core, instr)), |
