diff options
Diffstat (limited to 'src/isa/mod.rs')
-rw-r--r-- | src/isa/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/isa/mod.rs b/src/isa/mod.rs index 565e6e0..dd803c5 100644 --- a/src/isa/mod.rs +++ b/src/isa/mod.rs @@ -2,6 +2,8 @@ pub mod opcodes; pub mod funct3; pub mod funct7; +pub type Word = u32; + #[derive(Debug, PartialEq)] pub enum Register { X0 = 0, @@ -84,6 +86,8 @@ impl Register { #[derive(Copy, Clone, Debug)] pub struct Instruction { + // TODO: rename word to something correct - instructions are not always a + // word word: u32, } |