diff options
| author | taitep <taitep@taitep.se> | 2025-12-22 19:33:40 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-22 19:33:40 +0100 |
| commit | cb100e92ac6ff10e5468678d734adb633b04c5c4 (patch) | |
| tree | 95cc155ba212d362e09a64ecda02853fc8203f82 /src/instructions.rs | |
| parent | d0d3775b888b6cf1e7d240d3426db4175c200b48 (diff) | |
Implement SUB
Diffstat (limited to 'src/instructions.rs')
| -rw-r--r-- | src/instructions.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs index 6e9fbd8..615dd7a 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)), + (0b0100000, 0b000) => Some(rvi::sub(core, instr)), (0b0000000, 0b111) => Some(rvi::and(core, instr)), (0b0000000, 0b110) => Some(rvi::or(core, instr)), _ => None, |
