From ee5f5a2ec41ed426440346ff47339b63c2cf7c1d Mon Sep 17 00:00:00 2001 From: taitep Date: Tue, 7 Oct 2025 20:23:59 +0200 Subject: FIRST INSTRUCTION WORKING --- src/instructions/opcodes.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/instructions/opcodes.rs (limited to 'src/instructions/opcodes.rs') 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; -- cgit v1.2.3