pub enum Mode {
Show 17 variants
ImmediateM,
ImmediateX,
Direct,
DirectX,
DirectY,
DirectIndirect,
DirectXIndirect,
DirectIndirectY,
DirectIndirectLong,
DirectIndirectLongY,
Absolute,
AbsoluteX,
AbsoluteY,
AbsoluteLong,
AbsoluteLongX,
StackRelative,
StackRelativeIndirectY,
}Expand description
The enumerated 65C816 addressing modes the executor dispatches on.
Variants§
ImmediateM
Immediate operand whose width follows M (memory/accumulator modes).
ImmediateX
Immediate operand whose width follows X (index modes).
Direct
Direct page: D + dp.
DirectX
Direct page indexed by X: D + dp + X.
DirectY
Direct page indexed by Y: D + dp + Y.
DirectIndirect
Direct indirect: [D + dp] → 16-bit pointer in bank DBR.
DirectXIndirect
Direct indexed indirect: [D + dp + X] → pointer in bank DBR.
DirectIndirectY
Direct indirect indexed: [D + dp] + Y, base in bank DBR.
DirectIndirectLong
Direct indirect long: [D + dp] → 24-bit pointer.
DirectIndirectLongY
Direct indirect long indexed: [D + dp] (24-bit) + Y.
Absolute
Absolute: DBR:operand.
AbsoluteX
Absolute indexed by X: DBR:operand + X.
AbsoluteY
Absolute indexed by Y: DBR:operand + Y.
AbsoluteLong
Absolute long: 24-bit operand.
AbsoluteLongX
Absolute long indexed by X: 24-bit operand + X.
StackRelative
Stack relative: S + sr (bank 0).
StackRelativeIndirectY
Stack relative indirect indexed: [S + sr] (bank 0) + Y, base bank DBR.