aboutsummaryrefslogtreecommitdiff
path: root/src/isa/mod.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2015-12-25 15:15:50 -0700
committerDavid Li <li.davidm96@gmail.com>2015-12-25 15:15:50 -0700
commit05ae121c98be750aeca537ded7338c0cbf5f5b4c (patch)
treee218f1bf68377cfc25eb991f05b26266ace95d03 /src/isa/mod.rs
parentf235d8e500e9fd9945d07ed347ccab5214d26eba (diff)
Convert PC to u32
Diffstat (limited to 'src/isa/mod.rs')
-rw-r--r--src/isa/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs
index 5458255..b7ac405 100644
--- a/src/isa/mod.rs
+++ b/src/isa/mod.rs
@@ -9,8 +9,7 @@ pub type SignedHalfWord = i16;
pub type Byte = u8;
pub type SignedByte = i8;
-// TODO: directly encode PC as u32, as architecturally specified
-pub type Address = usize;
+pub type Address = u32;
#[derive(Debug, PartialEq)]
pub enum Register {