pub enum AddressingMode {
Implicit,
Immediate(u8),
ZeroPage(u8),
Absolute(u16),
Indirect(u16),
ZeroPageIndexedX(u8),
ZeroPageIndexedY(u8),
AbsoluteIndexedX(u16),
AbsoluteIndexedY(u16),
IndexedIndirect(u8),
IndirectIndexed(u8),
}Variants§
Implicit
Immediate(u8)
immediate value
ZeroPage(u8)
Zero page address $00zz
Absolute(u16)
Absolute address $hhll
Indirect(u16)
Indirect adressing ($hhll)
ZeroPageIndexedX(u8)
d,x val = PEEK((arg + X) % 256)
ZeroPageIndexedY(u8)
d,y val = PEEK((arg + Y) % 256)
AbsoluteIndexedX(u16)
a,x val = PEEK(arg + X)
AbsoluteIndexedY(u16)
a,y val = PEEK(arg + Y)
IndexedIndirect(u8)
(d,x) val = PEEK(PEEK((arg + X) % 256) + PEEK((arg + X + 1) % 256) * 256)
IndirectIndexed(u8)
(d),y val = PEEK(PEEK(arg) + PEEK((arg + 1) % 256) * 256 + Y)
Trait Implementations§
Source§impl Clone for AddressingMode
impl Clone for AddressingMode
Source§fn clone(&self) -> AddressingMode
fn clone(&self) -> AddressingMode
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 Debug for AddressingMode
impl Debug for AddressingMode
Source§impl<'de> Deserialize<'de> for AddressingMode
impl<'de> Deserialize<'de> for AddressingMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AddressingMode
impl Serialize for AddressingMode
impl Copy for AddressingMode
Auto Trait Implementations§
impl Freeze for AddressingMode
impl RefUnwindSafe for AddressingMode
impl Send for AddressingMode
impl Sync for AddressingMode
impl Unpin for AddressingMode
impl UnwindSafe for AddressingMode
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