pub enum AddressingMode {
Immediate,
Direct,
AIndirect,
BIndirect,
AIndirectPreDecrement,
BIndirectPreDecrement,
AIndirectPostIncrement,
BIndirectPostIncrement,
}
Expand description
Field Addressing mode: controls how the offset
behaves
Variants§
Immediate
Literal value e.g “2”
Denoted by: #
Direct
Direct pointer to another instruction
Denoted by: $
AIndirect
Indirect addressing by target’s A field
Denoted by: *
BIndirect
Indirect addressing by target’s B field
Denoted by: @
AIndirectPreDecrement
Indirect addressing by target’s A field, target instructions A field is decremented before calculating the target address
Denoted by: {
BIndirectPreDecrement
Indirect addressing by target’s A field, target instructions B field is decremented before calculating the target address
Denoted by: <
AIndirectPostIncrement
Indirect addressing by target’s A field, target instructions B field is incremented after calculating the target address
Denoted by: }
BIndirectPostIncrement
Indirect addressing by target’s B field, target instructions B field is incremented after calculating the target address
Denoted by: >
Trait Implementations§
Source§impl Clone for AddressingMode
impl Clone for AddressingMode
Source§fn clone(&self) -> AddressingMode
fn clone(&self) -> AddressingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more