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

#[repr(C)]pub struct Simulator {
    pub decoder: InstructionDecoder,
    pub state: MachineState,
    pub logger: Logger,
    pub inputter: *mut IInputter,
    pub threaded_input: bool,
    pub collecting_input: atomic<bool>,
}

Fields

decoder: InstructionDecoderstate: MachineStatelogger: Loggerinputter: *mut IInputterthreaded_input: boolcollecting_input: atomic<bool>

Implementations

impl Simulator[src]

pub unsafe fn loadObj(&mut self, buffer: *mut istream)[src]

pub unsafe fn simulate(&mut self)[src]

pub unsafe fn enableClock(&mut self)[src]

pub unsafe fn disableClock(&mut self)[src]

pub unsafe fn isClockEnabled(&self) -> bool[src]

pub unsafe fn reinitialize(&mut self)[src]

pub unsafe fn registerPreInstructionCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerPostInstructionCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerInterruptEnterCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerInterruptExitCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerExceptionEnterCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerExceptionExitCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerSubEnterCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerSubExitCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn registerWaitForInputCallback(&mut self, func: callback_func_t)[src]

pub unsafe fn setIgnorePrivilege(&mut self, ignore: bool)[src]

pub unsafe fn new(
    simulator: *mut sim,
    printer: *mut IPrinter,
    inputter: *mut IInputter,
    print_level: u32,
    threaded_input: bool
) -> Self
[src]

Trait Implementations

impl Default for Simulator[src]

Auto Trait Implementations

impl !RefUnwindSafe for Simulator

impl !Send for Simulator

impl !Sync for Simulator

impl Unpin for Simulator

impl !UnwindSafe for Simulator

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.