pub struct NativeCpu<IO: HostIO> {
pub host_io: Option<IO>,
/* private fields */
}Fields§
§host_io: Option<IO>Implementations§
Source§impl<IO: HostIO> NativeCpu<IO>
impl<IO: HostIO> NativeCpu<IO>
pub fn set_addresses_as_integers(&mut self, addresses_as_integers: bool)
pub fn print_state(&self)
pub fn set_halted(&mut self, halted: bool)
pub fn get_halted(&self) -> bool
pub fn set_print_memory_access(&mut self, print_memory_access: bool)
pub fn set_verbose(&mut self, verbose: bool)
pub fn set_entrypoint(&mut self, entrypoint: u32)
pub fn protect(&mut self, range: Range<u32>)
pub fn load_protected_memory(&mut self, address: u32, memory: &[u32])
pub fn load_memory(&mut self, address: u32, memory: &[u32])
pub fn execute(&mut self, run_mode: RunMode) -> Result<CpuStats, ExecutionError>
pub fn get_registers(&self) -> &[u32]
pub fn get_mut_registers(&mut self) -> &mut [u32]
pub fn get_memory(&self) -> &[u32]
pub fn new(memory_size: u32, registers: u8, host_io: IO) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<IO> Freeze for NativeCpu<IO>where
IO: Freeze,
impl<IO> RefUnwindSafe for NativeCpu<IO>where
IO: RefUnwindSafe,
impl<IO> Send for NativeCpu<IO>where
IO: Send,
impl<IO> Sync for NativeCpu<IO>where
IO: Sync,
impl<IO> Unpin for NativeCpu<IO>where
IO: Unpin,
impl<IO> UnsafeUnpin for NativeCpu<IO>where
IO: UnsafeUnpin,
impl<IO> UnwindSafe for NativeCpu<IO>where
IO: UnwindSafe,
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