diff options
author | Determinant <[email protected]> | 2017-11-11 15:23:48 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2017-11-11 15:23:48 -0500 |
commit | a600c658f7905e747bd9233b141de147972ef04c (patch) | |
tree | 97e9fff769d00235f14b63a969bfdac4a4b32380 /src/memory.rs | |
parent | be7b9d3a1b49d8bf85ae3ace56889c3b27062e40 (diff) |
add mapper and cartridge
Diffstat (limited to 'src/memory.rs')
-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 386e859..852b837 100644 --- a/src/memory.rs +++ b/src/memory.rs @@ -13,7 +13,7 @@ impl CPUMemory { } } -impl VMem for CPUMemory { +impl<'a> VMem for CPUMemory { fn read(&self, addr: u16) -> u8 { if addr < 0x2000 { self.internal[(addr & 0x07ff) as usize] |