pub struct VmEmulator {
    pub ram: Ram16k,
    /* private fields */
}
Expand description

This emulator implements all the VM commands with Rust operating on its own instance of a memory

Fields

ram: Ram16k

Implementations

Loads a program into the emulator

Pushes value on top of the stack

Pushes segment[offset] on top of the stack

Pops and returns the topmost element of the stack

Pops an element from the stack and stores it into segment[offset]

Fetches the next instruction and executes it

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.