pub struct Z80<T: Z80_io> {}Expand description
Z80 CPU
Fields§
§io: T§pc: u16§sp: u16§ix: u16§iy: u16§mem_ptr: u16§i: u8§r: u8§iff_delay: u8§interrupt_mode: u8§irq_data: u8§irq_pending: u8§nmi_pending: u8§halted: bool§iff1: bool§iff2: boolImplementations§
Source§impl<T: Z80_io> Z80<T>
impl<T: Z80_io> Z80<T>
pub fn new(io: T) -> Self
pub fn init(&mut self)
pub fn step(&mut self) -> u32
pub fn reset(&mut self)
pub fn assert_irq(&mut self, data: u8)
pub fn assert_nmi(&mut self)
pub fn pulse_nmi(&mut self)
pub fn clr_nmi(&mut self)
pub fn pulse_irq(&mut self, data: u8)
pub fn clr_irq(&mut self)
Auto Trait Implementations§
impl<T> Freeze for Z80<T>where
T: Freeze,
impl<T> RefUnwindSafe for Z80<T>where
T: RefUnwindSafe,
impl<T> Send for Z80<T>where
T: Send,
impl<T> Sync for Z80<T>where
T: Sync,
impl<T> Unpin for Z80<T>where
T: Unpin,
impl<T> UnwindSafe for Z80<T>where
T: 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