diff options
author | Oxore <oxore@protonmail.com> | 2020-03-05 00:33:55 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2020-03-05 00:36:29 +0300 |
commit | 19e0e4cb5f26df537bf07b428700bea30460fd5b (patch) | |
tree | 8f55e2525d107d28899aa3b486c3c8485965aa04 /src/progmem.rs | |
parent | 7d4dfd8af842796c4eb8a88df0cc5ab30f99232d (diff) |
Use bus for all memory types, etc.
Rename Memory to Bus
Diffstat (limited to 'src/progmem.rs')
-rw-r--r-- | src/progmem.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progmem.rs b/src/progmem.rs index 325eab1..93f31fd 100644 --- a/src/progmem.rs +++ b/src/progmem.rs @@ -1,4 +1,4 @@ -use crate::memory::Memory; +use super::bus::Bus; use std::fmt; pub struct ProgramMemory { @@ -125,7 +125,7 @@ impl ProgramMemory { } } -impl Memory<u16> for ProgramMemory { +impl Bus<u16> for ProgramMemory { fn get(&self, a: u16) -> u8 { self.array[a as usize] } |