diff options
-rw-r--r-- | src/memory.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory.rs b/src/memory.rs index 226b6c2..a0e1a11 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -42,7 +42,7 @@ pub trait MemoryInterface { fn write_word(&mut self, address: isa::Address, value: isa::Word) -> Result<()>; fn read_instruction(&mut self, address: isa::Address) -> Option<Instruction> { - match self.read_word(address / 4) { + match self.read_word(address) { Ok(word) => Some(Instruction::new(word)), Err(_) => None, } |