[][src]Enum cpclib_asm::preamble::tokens::DataAccess

pub enum DataAccess {
    IndexRegister16WithIndex(IndexRegister16Expr),
    IndexRegister16(IndexRegister16),
    IndexRegister8(IndexRegister8),
    Register16(Register16),
    Register8(Register8),
    MemoryRegister16(Register16),
    MemoryIndexRegister16(IndexRegister16),
    Expression(Expr),
    Memory(Expr),
    FlagTest(FlagTest),
    SpecialRegisterI,
    SpecialRegisterR,
    PortC,
}

Encode the way mnemonics access to data

Variants

IndexRegister16WithIndex(IndexRegister16Expr)

We are using an indexed register associated to its index

IndexRegister16(IndexRegister16)
IndexRegister8(IndexRegister8)
Register16(Register16)

Represents a standard 16 bits register

Register8(Register8)

Represents a standard 8 bits register

MemoryRegister16(Register16)

Represents a memory access indexed by a register

MemoryIndexRegister16(IndexRegister16)
Expression(Expr)

Represents any expression

Memory(Expr)

Represents an address

FlagTest(FlagTest)

Represnts the test of bit flag

SpecialRegisterI

Special register I

SpecialRegisterR

Special register R

PortC

Used for in/out instructions

Methods

impl DataAccess[src]

pub fn expr(&self) -> Option<&Expr>[src]

pub fn is_portc(&self) -> bool[src]

pub fn is_register_i(&self) -> bool[src]

pub fn is_register_r(&self) -> bool[src]

pub fn is_register8(&self) -> bool[src]

pub fn is_register16(&self) -> bool[src]

pub fn is_indexregister8(&self) -> bool[src]

pub fn is_indexregister16(&self) -> bool[src]

pub fn is_indexregister_with_index(&self) -> bool[src]

pub fn is_memory(&self) -> bool[src]

pub fn is_address_in_register16(&self) -> bool[src]

pub fn get_register16(&self) -> Option<Register16>[src]

pub fn get_indexregister16(&self) -> Option<IndexRegister16>[src]

pub fn get_register8(&self) -> Option<Register8>[src]

pub fn get_expression(&self) -> Option<&Expr>[src]

impl DataAccess[src]

pub fn is_register_ixh(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_ixl(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_iyh(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_iyl(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_a(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_b(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_c(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_d(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_e(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_h(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_l(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_af(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_bc(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_de(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_hl(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_sp(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_ix(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

impl DataAccess[src]

pub fn is_register_iy(&self) -> bool[src]

Check if this DataAccess corresonds to $reg

Trait Implementations

impl Clone for DataAccess[src]

impl Debug for DataAccess[src]

impl Display for DataAccess[src]

impl Eq for DataAccess[src]

impl<'_> From<&'_ str> for DataAccess[src]

impl From<Expr> for DataAccess[src]

impl From<FlagTest> for DataAccess[src]

impl From<IndexRegister16> for DataAccess[src]

impl From<IndexRegister8> for DataAccess[src]

impl From<Register16> for DataAccess[src]

impl From<Register8> for DataAccess[src]

impl From<u8> for DataAccess[src]

impl PartialEq<DataAccess> for DataAccess[src]

impl StructuralEq for DataAccess[src]

impl StructuralPartialEq for DataAccess[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.