Files
trve/src/instructions/opcodes.rs

11 lines
344 B
Rust

//! 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 = 0b000;
pub(super) const STORE: u8 = 0b01000;
pub(super) const FUNCT3_SD: u8 = 0b011;