aboutsummaryrefslogtreecommitdiff
path: root/src/isa
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-20 18:29:43 -0500
committerDavid Li <li.davidm96@gmail.com>2015-12-20 18:29:43 -0500
commit2f788d140e94d5a020b90736796d7169fcb2eab8 (patch)
tree22aa3c4b0d13b50b56f603e82c4152d759d1c755 /src/isa
parentea76448fb43b760afa6a9380756b038c62ed9792 (diff)
Introduce type aliases for ISA things
Diffstat (limited to 'src/isa')
-rw-r--r--src/isa/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs
index dd803c5..086df74 100644
--- a/src/isa/mod.rs
+++ b/src/isa/mod.rs
@@ -3,6 +3,8 @@ pub mod funct3;
pub mod funct7;
pub type Word = u32;
+pub type SignedWord = i32;
+pub type Address = usize;
#[derive(Debug, PartialEq)]
pub enum Register {