[][src]Struct lc3tools_sys::root::lc3::core::MachineState

#[repr(C)]pub struct MachineState {
    pub mem: vector,
    pub regs: [u32; 8],
    pub pc: u32,
    pub sys_call_types: stack<deque>,
    pub logger: *mut Logger,
    pub pre_instruction_callback_v: bool,
    pub post_instruction_callback_v: bool,
    pub interrupt_enter_callback_v: bool,
    pub interrupt_exit_callback_v: bool,
    pub exception_enter_callback_v: bool,
    pub exception_exit_callback_v: bool,
    pub sub_enter_callback_v: bool,
    pub sub_exit_callback_v: bool,
    pub wait_for_input_callback_v: bool,
    pub pre_instruction_callback: callback_func_t,
    pub post_instruction_callback: callback_func_t,
    pub interrupt_enter_callback: callback_func_t,
    pub interrupt_exit_callback: callback_func_t,
    pub exception_enter_callback: callback_func_t,
    pub exception_exit_callback: callback_func_t,
    pub sub_enter_callback: callback_func_t,
    pub sub_exit_callback: callback_func_t,
    pub wait_for_input_callback: callback_func_t,
    pub simulator: *mut sim,
    pub ignore_privilege: bool,
}

Fields

mem: vectorregs: [u32; 8]pc: u32sys_call_types: stack<deque>logger: *mut Loggerpre_instruction_callback_v: boolpost_instruction_callback_v: boolinterrupt_enter_callback_v: boolinterrupt_exit_callback_v: boolexception_enter_callback_v: boolexception_exit_callback_v: boolsub_enter_callback_v: boolsub_exit_callback_v: boolwait_for_input_callback_v: boolpre_instruction_callback: callback_func_tpost_instruction_callback: callback_func_tinterrupt_enter_callback: callback_func_tinterrupt_exit_callback: callback_func_texception_enter_callback: callback_func_texception_exit_callback: callback_func_tsub_enter_callback: callback_func_tsub_exit_callback: callback_func_twait_for_input_callback: callback_func_tsimulator: *mut simignore_privilege: bool

Implementations

impl MachineState[src]

pub unsafe fn readMemEvent(
    &self,
    addr: u32,
    change_mem: *mut bool,
    change: *mut shared_ptr
) -> u32
[src]

pub unsafe fn readMemSafe(&mut self, addr: u32) -> u32[src]

pub unsafe fn readMemRaw(&self, addr: u32) -> u32[src]

pub unsafe fn writeMemEvent(
    &mut self,
    addr: u32,
    value: u16,
    change_mem: *mut bool,
    change: *mut shared_ptr
)
[src]

pub unsafe fn writeMemSafe(&mut self, addr: u32, value: u16)[src]

pub unsafe fn writeMemRaw(&mut self, addr: u32, value: u16)[src]

Trait Implementations

impl Default for MachineState[src]

Auto Trait Implementations

impl !RefUnwindSafe for MachineState

impl !Send for MachineState

impl !Sync for MachineState

impl Unpin for MachineState

impl !UnwindSafe for MachineState

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> 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.