summaryrefslogtreecommitdiff
path: root/src/instructions/opcodes.rs
diff options
context:
space:
mode:
authortaitep <taitep@taitep.se>2025-10-07 20:23:59 +0200
committertaitep <taitep@taitep.se>2025-10-07 20:23:59 +0200
commitee5f5a2ec41ed426440346ff47339b63c2cf7c1d (patch)
treeedc61c079f6a0070ddee7813966ad30a04ee23da /src/instructions/opcodes.rs
parent361b36fbd1ba4a710abbc866da1c641545a6d53f (diff)
FIRST INSTRUCTION WORKING
Diffstat (limited to 'src/instructions/opcodes.rs')
-rw-r--r--src/instructions/opcodes.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/instructions/opcodes.rs b/src/instructions/opcodes.rs
new file mode 100644
index 0000000..33f824d
--- /dev/null
+++ b/src/instructions/opcodes.rs
@@ -0,0 +1,6 @@
+//! Includes opcodes, funct3 values, and match/mask values.
+//! Opcodes (unless compressed) have the last 2 bits stripped off as they are always 1s for non-compressed instructions.
+
+pub(super) const OP_IMM: u8 = 0b00100;
+
+pub(super) const FUNCT3_ADDI: u8 = 0x0;