[][src]Struct emul8::internals::memory::Memory

pub struct Memory {
    pub registers: Registers,
    pub stack: [u16; 16],
    pub ram: [u8; 4096],
}

Fields

registers: Registersstack: [u16; 16]ram: [u8; 4096]

Methods

impl Memory[src]

pub fn load_from_file(
    &mut self,
    name: &str,
    loading_point: u16
) -> Result<(), Error>
[src]

pub fn read_u8(&mut self, addr: u16) -> u8[src]

pub fn read_two_u8(&mut self, addr: u16) -> (u8, u8)[src]

pub fn read_u16(&mut self, addr: u16) -> u16[src]

pub fn stack_push(&mut self, val: u16)[src]

pub fn stack_pop(&mut self) -> u16[src]

pub fn stack_peek(&mut self) -> u16[src]

Trait Implementations

impl Debug for Memory[src]

impl Default for Memory[src]

Auto Trait Implementations

impl RefUnwindSafe for Memory

impl Send for Memory

impl Sync for Memory

impl Unpin for Memory

impl UnwindSafe for Memory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,