summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-12-23 18:31:04 +0100
committertaitep <taitep@taitep.se>2025-12-23 18:31:04 +0100
commit23392a55dff889bad89dcb495390fde88e3bfb69 (patch)
tree616c28fea8abd5dda8232b38c59f8020af99ac88 /src/instructions.rs
parentf38114dbd7a897a8048bf27446c75f12b994249f (diff)
Implement SH
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs
index 2297994..8c9c910 100644
--- a/src/instructions.rs
+++ b/src/instructions.rs
@@ -36,6 +36,7 @@ pub(crate) fn find_and_exec(instr: Instruction, core: &mut Core) -> Option<Instr
0b01000 => match instr.funct3() {
// STORE
0b000 => Some(rvi::sb(core, instr)),
+ 0b001 => Some(rvi::sh(core, instr)),
0b010 => Some(rvi::sw(core, instr)),
0b011 => Some(rvi::sd(core, instr)),
_ => None,