[−][src]Enum cpclib_asm::preamble::tokens::DataAccess
Encode the way mnemonics access to data
Variants
IndexRegister16WithIndex(IndexRegister16, Expr)
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
Special register I
Special register R
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]
fn clone(&self) -> DataAccess
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DataAccess
[src]
impl Display for DataAccess
[src]
impl Eq for DataAccess
[src]
impl<'_> From<&'_ str> for DataAccess
[src]
fn from(txt: &str) -> DataAccess
[src]
impl From<Expr> for DataAccess
[src]
fn from(exp: Expr) -> DataAccess
[src]
impl From<FlagTest> for DataAccess
[src]
fn from(test: FlagTest) -> DataAccess
[src]
impl From<IndexRegister16> for DataAccess
[src]
fn from(reg: IndexRegister16) -> DataAccess
[src]
impl From<IndexRegister8> for DataAccess
[src]
fn from(reg: IndexRegister8) -> DataAccess
[src]
impl From<Register16> for DataAccess
[src]
fn from(reg: Register16) -> DataAccess
[src]
impl From<Register8> for DataAccess
[src]
fn from(reg: Register8) -> DataAccess
[src]
impl From<u8> for DataAccess
[src]
fn from(val: u8) -> DataAccess
[src]
impl PartialEq<DataAccess> for DataAccess
[src]
fn eq(&self, other: &DataAccess) -> bool
[src]
fn ne(&self, other: &DataAccess) -> bool
[src]
impl StructuralEq for DataAccess
[src]
impl StructuralPartialEq for DataAccess
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataAccess
impl Send for DataAccess
impl Sync for DataAccess
impl Unpin for DataAccess
impl UnwindSafe for DataAccess
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,