aboutsummaryrefslogtreecommitdiff
path: root/src/isa/funct3.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-18 21:20:36 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-18 21:20:36 -0500
commitfd582a1cbd091576701d12e886d9ad91527320f9 (patch)
tree1b1a2d1cb32cbdb51765939f3a41790e05cc5d8f /src/isa/funct3.rs
parenteaf81f3ea63098a908476d05886c8f00ac7e9389 (diff)
Implement RV32I integer-register instructions
Diffstat (limited to 'src/isa/funct3.rs')
-rw-r--r--src/isa/funct3.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/isa/funct3.rs b/src/isa/funct3.rs
index d9a626a..0612844 100644
--- a/src/isa/funct3.rs
+++ b/src/isa/funct3.rs
@@ -2,6 +2,20 @@ pub const ADDI: u32 = 0x0;
pub const SLLI: u32 = 0x1;
pub const SLTI: u32 = 0x2;
pub const SLTIU: u32 = 0x3;
+pub const XORI: u32 = 0x4;
+pub const SRLI: u32 = 0x5;
+pub const SRAI: u32 = 0x5;
+pub const ORI: u32 = 0x6;
+pub const ANDI: u32 = 0x7;
+
+pub const ADD_SUB: u32 = 0x0;
+pub const SLL: u32 = 0x1;
+pub const SLT: u32 = 0x2;
+pub const SLTU: u32 = 0x3;
+pub const XOR: u32 = 0x4;
+pub const SRL_SRA: u32 = 0x5;
+pub const OR: u32 = 0x6;
+pub const AND: u32 = 0x7;
pub const LW: u32 = 0x2;