Struct moa_m68k::timing::M68kInstructionTiming

source ·
pub struct M68kInstructionTiming {
    pub cputype: M68kType,
    pub bus_size: Size,
    pub branched: bool,
    pub reps: u16,
    pub accesses: u8,
    pub internal: u8,
    pub on_branch: u8,
    pub per_rep: u8,
}

Fields§

§cputype: M68kType§bus_size: Size§branched: bool§reps: u16§accesses: u8§internal: u8§on_branch: u8§per_rep: u8

Implementations§

source§

impl M68kInstructionTiming

source

pub fn new(cputype: M68kType, bus_width: u8) -> Self

source

pub fn reset(&mut self)

source

pub fn add_access(&mut self, size: Size) -> &mut Self

source

pub fn add_internal(&mut self, clocks: u8) -> &mut Self

source

pub fn sub_internal(&mut self, clocks: u8) -> &mut Self

source

pub fn add_if_long(&mut self, size: Size, clocks: u8) -> &mut Self

source

pub fn add_reg_v_mem(&mut self, target: &Target, reg: u8, mem: u8) -> &mut Self

source

pub fn add_word_v_long(&mut self, size: Size, word: u8, long: u8) -> &mut Self

source

pub fn add_standard_set( &mut self, size: Size, target: &Target, areg: (u8, u8), dreg: (u8, u8), mem: (u8, u8) ) -> &mut Self

source

pub fn add_immediate_set( &mut self, size: Size, target: &Target, reg: (u8, u8), mem: (u8, u8) ) -> &mut Self

source

pub fn add_indirect_set( &mut self, target: &Target, areg: u8, aoff: u8, indoff: u8, indw: u8, indl: u8 ) -> &mut Self

source

pub fn add_reg_mem_set( &mut self, size: Size, target: &Target, reg: (u8, u8), mem: (u8, u8) ) -> &mut Self

source

pub fn add_on_branch(&mut self, clocks: u8) -> &mut Self

source

pub fn add_per_rep(&mut self, clocks: u8) -> &mut Self

source

pub fn add_target(&mut self, size: Size, target: &Target) -> &mut Self

source

pub fn add_two_targets( &mut self, size: Size, src: &Target, dest: &Target ) -> &mut Self

source

pub fn add_movem( &mut self, size: Size, target: &Target, dir: Direction, n: u8 ) -> &mut Self

source

pub fn add_instruction(&mut self, instruction: &Instruction) -> &mut Self

source

pub fn add_instruction_68000(&mut self, instruction: &Instruction) -> &mut Self

source

pub fn add_instruction_68020(&mut self, _instruction: &Instruction) -> &mut Self

source

pub fn performed_reset(&mut self)

source

pub fn increase_reps(&mut self, reps: u16)

source

pub fn branch_taken(&mut self)

source

pub fn calculate_clocks(&self) -> ClockCycles

source

pub fn access_size(&self, size: Size) -> u8

Trait Implementations§

source§

impl Clone for M68kInstructionTiming

source§

fn clone(&self) -> M68kInstructionTiming

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for M68kInstructionTiming

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for M68kInstructionTiming

source§

fn eq(&self, other: &M68kInstructionTiming) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for M68kInstructionTiming

source§

impl StructuralPartialEq for M68kInstructionTiming

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, S> IntoAddress<T> for S
where T: FromAddress<S>,

source§

fn into_address(self) -> T

Translate the given address into an address of type T
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.