pub struct Cpu { /* private fields */ }
Implementations§
Source§impl Cpu
impl Cpu
pub fn new() -> Self
pub fn reset(&mut self)
pub fn registers(&self) -> &Registers
pub fn registers_mut(&mut self) -> &mut Registers
pub fn debugger(&mut self) -> &mut Debugger
Available on crate feature
debugger
only.pub fn clock<P: CpuBusProvider>( &mut self, bus: &mut P, instructions: u32, ) -> (u32, CpuState)
pub fn is_shell_reached(&self) -> bool
Auto Trait Implementations§
impl Freeze for Cpu
impl !RefUnwindSafe for Cpu
impl !Send for Cpu
impl !Sync for Cpu
impl Unpin for Cpu
impl !UnwindSafe for Cpu
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