diff options
author | David Li <li.davidm96@gmail.com> | 2015-12-18 21:20:36 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2015-12-18 21:20:36 -0500 |
commit | fd582a1cbd091576701d12e886d9ad91527320f9 (patch) | |
tree | 1b1a2d1cb32cbdb51765939f3a41790e05cc5d8f /src/isa/opcodes.rs | |
parent | eaf81f3ea63098a908476d05886c8f00ac7e9389 (diff) |
Implement RV32I integer-register instructions
Diffstat (limited to 'src/isa/opcodes.rs')
-rw-r--r-- | src/isa/opcodes.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/isa/opcodes.rs b/src/isa/opcodes.rs index 33af0f6..e5763e3 100644 --- a/src/isa/opcodes.rs +++ b/src/isa/opcodes.rs @@ -1,4 +1,8 @@ -pub const BRANCH: u32 = 0x12; +pub const BRANCH: u32 = 0x63; +pub const JALR: u32 = 0x67; +pub const JAL: u32 = 0x68; pub const INTEGER_IMMEDIATE: u32 = 0x13; +pub const INTEGER_REGISTER: u32 = 0x33; pub const LOAD: u32 = 0x3; pub const STORE: u32 = 0x23; +pub const SYSTEM: u32 = 0x73; |