Enum moa_z80::timing::Z80InstructionCycles
source · pub enum Z80InstructionCycles {
Single(u16),
Branch {
taken: u16,
not_taken: u16,
},
Repeating {
repeating: u16,
terminating: u16,
},
}
Variants§
Implementations§
source§impl Z80InstructionCycles
impl Z80InstructionCycles
pub fn calculate_cycles(&self, took_branch: bool) -> u16
pub fn from_instruction( instruction: &Instruction, extra: u16 ) -> Result<Z80InstructionCycles, Z80Error>
Auto Trait Implementations§
impl Freeze for Z80InstructionCycles
impl RefUnwindSafe for Z80InstructionCycles
impl Send for Z80InstructionCycles
impl Sync for Z80InstructionCycles
impl Unpin for Z80InstructionCycles
impl UnwindSafe for Z80InstructionCycles
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T