#[repr(C)]
pub struct m68k_op_mem { pub base_reg: Type, pub index_reg: Type, pub in_base_reg: Type, pub in_disp: u32, pub out_disp: u32, pub disp: i16, pub scale: u8, pub bitfield: u8, pub width: u8, pub offset: u8, pub index_size: u8, }
Expand description

Instruction’s operand referring to memory This is associated with M68K_OP_MEM operand type above

Fields§

§base_reg: Type

< base register (or M68K_REG_INVALID if irrelevant)

§index_reg: Type

< index register (or M68K_REG_INVALID if irrelevant)

§in_base_reg: Type

< indirect base register (or M68K_REG_INVALID if irrelevant)

§in_disp: u32

< indirect displacement

§out_disp: u32

< other displacement

§disp: i16

< displacement value

§scale: u8

< scale for index register

§bitfield: u8

< set to true if the two values below should be used

§width: u8

< used for bf* instructions

§offset: u8

< used for bf* instructions

§index_size: u8

< 0 = w, 1 = l

Trait Implementations§

source§

impl Clone for m68k_op_mem

source§

fn clone(&self) -> Self

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 m68k_op_mem

source§

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

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

impl Copy for m68k_op_mem

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, 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.