[−][src]Struct lc3tools_sys::root::lc3::sim
Fields
printer: *mut IPrinter
simulator: Simulator
inst_exec_count: u64
total_inst_limit: u64
inst_limit: u64
remaining_inst_count: i64
sub_depth: i32
hit_internal_exception: bool
pre_instruction_callback_v: bool
post_instruction_callback_v: bool
interrupt_enter_callback_v: bool
interrupt_exit_callback_v: bool
exception_enter_callback_v: bool
exception_exit_callback_v: bool
sub_enter_callback_v: bool
sub_exit_callback_v: bool
wait_for_input_callback_v: bool
breakpoint_callback_v: bool
pre_instruction_callback: callback_func_t
post_instruction_callback: callback_func_t
interrupt_enter_callback: callback_func_t
interrupt_exit_callback: callback_func_t
exception_enter_callback: callback_func_t
exception_exit_callback: callback_func_t
sub_enter_callback: callback_func_t
sub_exit_callback: callback_func_t
wait_for_input_callback: callback_func_t
breakpoint_callback: breakpoint_callback_func_t
breakpoint_id: u32
breakpoints: vector
propagate_exceptions: bool
run_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]
&mut self,
func: breakpoint_callback_func_t
)
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]
printer: *mut IPrinter,
inputter: *mut IInputter,
threaded_input: bool,
print_level: u32,
propagate_exceptions: bool
) -> Self
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,