Enum z80emu::CpuDebugAddr
source · pub enum CpuDebugAddr {
ImmAddr(u16),
RegAddr(Reg16),
IndexAddr(Prefix, Option<i8>),
}
Expand description
An address command argument.
Variants§
ImmAddr(u16)
An immediate address.
RegAddr(Reg16)
An indirect addressing via a 16-bit register.
IndexAddr(Prefix, Option<i8>)
An indirect addressing via an indexing register indicated by the Prefix and with an optional 8-bit signed index offset.
Option<i8>
is None
only in arguments to JP (IX)
, JP (IY)
.
Trait Implementations§
source§impl Clone for CpuDebugAddr
impl Clone for CpuDebugAddr
source§fn clone(&self) -> CpuDebugAddr
fn clone(&self) -> CpuDebugAddr
Returns a copy 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 CpuDebugAddr
impl Debug for CpuDebugAddr
source§impl Display for CpuDebugAddr
impl Display for CpuDebugAddr
source§impl Hash for CpuDebugAddr
impl Hash for CpuDebugAddr
source§impl LowerHex for CpuDebugAddr
impl LowerHex for CpuDebugAddr
source§impl PartialEq for CpuDebugAddr
impl PartialEq for CpuDebugAddr
source§fn eq(&self, other: &CpuDebugAddr) -> bool
fn eq(&self, other: &CpuDebugAddr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl UpperHex for CpuDebugAddr
impl UpperHex for CpuDebugAddr
impl Copy for CpuDebugAddr
impl Eq for CpuDebugAddr
impl StructuralPartialEq for CpuDebugAddr
Auto Trait Implementations§
impl RefUnwindSafe for CpuDebugAddr
impl Send for CpuDebugAddr
impl Sync for CpuDebugAddr
impl Unpin for CpuDebugAddr
impl UnwindSafe for CpuDebugAddr
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