[][src]Trait rysk_core::system::Mmu

pub trait Mmu<R: Register> {
    fn get(&self, address: R::Unsigned) -> u8;
fn set(&mut self, address: R::Unsigned, value: u8); fn fetch(&self, address: R) -> [u8; 4] { ... } }

A Memory Management Unit (MMU) handles memory accesses on the system. Devices and memory regions other than working memory (ie. RAM) may be mapped by way of the MMU.

Required methods

fn get(&self, address: R::Unsigned) -> u8

Get the byte at the given address

fn set(&mut self, address: R::Unsigned, value: u8)

Set the byte at the given address

Loading content...

Provided methods

fn fetch(&self, address: R) -> [u8; 4]

Fetch an instruction to execute

Loading content...

Implementors

Loading content...