diff options
Diffstat (limited to 'src')
-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 768ce59..83f53af 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -155,7 +155,7 @@ impl ReverseMmu { impl Mmu for ReverseMmu { fn translate(&self, address: isa::Address) -> isa::Address { let offset = address % 4; - (self.top - (address - offset)) + offset + (self.top - 4 - (address - offset)) + offset } } |