aboutsummaryrefslogtreecommitdiff
path: root/src/isa/opcodes.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-06 15:37:08 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-06 15:37:08 -0700
commit9b37e5da43f7e2a0e42bc36c0a1b1cc66a402808 (patch)
tree9e00409ca95ee3e1a575b75536910e4b56231cfd /src/isa/opcodes.rs
parentaf31eff1db5fea09b7b01e5d163c1684d800f7f0 (diff)
Implement LUI, AUIPC
Diffstat (limited to 'src/isa/opcodes.rs')
-rw-r--r--src/isa/opcodes.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/isa/opcodes.rs b/src/isa/opcodes.rs
index 39401cd..8ca715e 100644
--- a/src/isa/opcodes.rs
+++ b/src/isa/opcodes.rs
@@ -14,6 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with rustv. If not, see <http://www.gnu.org/licenses/>.
+pub const LUI: u32 = 0x37;
+pub const AUIPC: u32 = 0x17;
pub const BRANCH: u32 = 0x63;
pub const JALR: u32 = 0x67;
pub const JAL: u32 = 0x6F;