pub struct EmulatorState {
pub memory: [u8; 4096],
pub stack: Vec<usize>,
pub variable_registers: [u8; 16],
pub screen_buffer: Vec<u8>,
pub index_register: usize,
pub program_counter: usize,
pub last_instruction: Instruction,
}Expand description
Data that is returned after each iteration of the interpreter as long as it is running as an iterator.
Fields§
§memory: [u8; 4096]§stack: Vec<usize>§variable_registers: [u8; 16]§screen_buffer: Vec<u8>§index_register: usize§program_counter: usize§last_instruction: InstructionTrait Implementations§
Auto Trait Implementations§
impl Freeze for EmulatorState
impl RefUnwindSafe for EmulatorState
impl Send for EmulatorState
impl Sync for EmulatorState
impl Unpin for EmulatorState
impl UnsafeUnpin for EmulatorState
impl UnwindSafe for EmulatorState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more