From 05ae121c98be750aeca537ded7338c0cbf5f5b4c Mon Sep 17 00:00:00 2001 From: David Li Date: Fri, 25 Dec 2015 15:15:50 -0700 Subject: Convert PC to u32 --- src/isa/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/isa') 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 { -- cgit v1.2.3