Memory

Trait Memory 

Source
pub trait Memory {
    // Required methods
    fn read_byte(&self, addr: u16) -> u8;
    fn read_word(&self, addr: u16) -> u16;
    fn write_byte(&mut self, addr: u16, byte: u8);
    fn write_word(&mut self, addr: u16, word: u16);
    fn in_port(&self, port: u8) -> u8;
    fn out_port(&self, port: u8, byte: u8);
}

Required Methods§

Source

fn read_byte(&self, addr: u16) -> u8

Source

fn read_word(&self, addr: u16) -> u16

Source

fn write_byte(&mut self, addr: u16, byte: u8)

Source

fn write_word(&mut self, addr: u16, word: u16)

Source

fn in_port(&self, port: u8) -> u8

Source

fn out_port(&self, port: u8, byte: u8)

Implementors§