[][src]Struct lc3tools_sys::root::lc3::sim

#[repr(C)]pub struct sim {
    pub printer: *mut IPrinter,
    pub simulator: Simulator,
    pub inst_exec_count: u64,
    pub total_inst_limit: u64,
    pub inst_limit: u64,
    pub remaining_inst_count: i64,
    pub sub_depth: i32,
    pub hit_internal_exception: bool,
    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 breakpoint_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 breakpoint_callback: breakpoint_callback_func_t,
    pub breakpoint_id: u32,
    pub breakpoints: vector,
    pub propagate_exceptions: bool,
    pub run_type: sim_RunType,
}

Fields

printer: *mut IPrintersimulator: Simulatorinst_exec_count: u64total_inst_limit: u64inst_limit: u64remaining_inst_count: i64sub_depth: i32hit_internal_exception: boolpre_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: boolbreakpoint_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_tbreakpoint_callback: breakpoint_callback_func_tbreakpoint_id: u32breakpoints: vectorpropagate_exceptions: boolrun_type: sim_RunType

Implementations

impl sim[src]

pub unsafe fn loadObjFile(&mut self, obj_filename: *const string) -> bool[src]

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

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

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

pub unsafe fn setRunInstLimit(&mut self, inst_limit: u64)[src]

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

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

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

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

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

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

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

pub unsafe fn getMachineState(&mut self) -> *mut MachineState[src]

pub unsafe fn getMachineState1(&self) -> *const MachineState[src]

pub unsafe fn getInstExecCount(&self) -> u64[src]

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

pub unsafe fn getBreakpoints(&self) -> *const vector[src]

pub unsafe fn getReg(&self, id: u16) -> u16[src]

pub unsafe fn getMem(&self, addr: u16) -> u16[src]

pub unsafe fn getMemLine(&self, addr: u16) -> string[src]

pub unsafe fn getPC(&self) -> u16[src]

pub unsafe fn getPSR(&self) -> u16[src]

pub unsafe fn getMCR(&self) -> u16[src]

pub unsafe fn getCC(&self) -> c_char[src]

pub unsafe fn setReg(&mut self, id: u16, value: u16)[src]

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

pub unsafe fn setMemString(&mut self, addr: u16, value: *const string)[src]

pub unsafe fn setMemLine(&mut self, addr: u16, value: *const string)[src]

pub unsafe fn setPC(&mut self, value: u16)[src]

pub unsafe fn setPSR(&mut self, value: u16)[src]

pub unsafe fn setMCR(&mut self, value: u16)[src]

pub unsafe fn setCC(&mut self, value: c_char)[src]

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

pub unsafe fn removeBreakpointByID(&mut self, id: u32) -> bool[src]

pub unsafe fn removeBreakpointByAddr(&mut self, addr: u16) -> bool[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 registerBreakpointCallback(
    &mut self,
    func: breakpoint_callback_func_t
)
[src]

pub unsafe fn getPrinter(&mut self) -> *mut IPrinter[src]

pub unsafe fn getPrinter1(&self) -> *const IPrinter[src]

pub unsafe fn setPrintLevel(&mut self, print_level: u32)[src]

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

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

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

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

Trait Implementations

impl Default for sim[src]

Auto Trait Implementations

impl !RefUnwindSafe for sim

impl !Send for sim

impl !Sync for sim

impl Unpin for sim

impl !UnwindSafe for sim

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.