pub struct Instruction<B: Mos6502CompatibleBus> {
pub cycles: u8,
pub execute: fn(&mut Cpu<B>, &mut B),
}Expand description
A single instruction with cycle count and execution function.
Fields§
§cycles: u8§execute: fn(&mut Cpu<B>, &mut B)Trait Implementations§
Source§impl<B: Clone + Mos6502CompatibleBus> Clone for Instruction<B>
impl<B: Clone + Mos6502CompatibleBus> Clone for Instruction<B>
Source§fn clone(&self) -> Instruction<B>
fn clone(&self) -> Instruction<B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B: Debug + Mos6502CompatibleBus> Debug for Instruction<B>
impl<B: Debug + Mos6502CompatibleBus> Debug for Instruction<B>
impl<B: Copy + Mos6502CompatibleBus> Copy for Instruction<B>
Auto Trait Implementations§
impl<B> Freeze for Instruction<B>
impl<B> RefUnwindSafe for Instruction<B>
impl<B> Send for Instruction<B>
impl<B> Sync for Instruction<B>
impl<B> Unpin for Instruction<B>
impl<B> UnwindSafe for Instruction<B>
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