pub trait AddressSpace {
// Required methods
fn read(&self, address: u16) -> u8;
fn write(&mut self, address: u16, value: u8);
}
Expand description
How the CPU communicates with the “external world”.
pub trait AddressSpace {
// Required methods
fn read(&self, address: u16) -> u8;
fn write(&mut self, address: u16, value: u8);
}
How the CPU communicates with the “external world”.