Structure
M680xInstruction.Operand
public struct Operand: InstructionOperand
Operand for M680x instructions.
The operand's value can be accessed by the value property, or by a property corresponding to the operand's type:
-
registerorregistersforregoperands. -
immediateValueforimmoperands. -
constantValueforconstantoperands. -
indexedAddressforindexedoperands. -
relativeAddressforrelativeoperands. -
extendedAddressforextendedoperands. -
directAddressfordirectoperands.
Relationships
Member Of
M680xInstructionM680x Instruction
Nested Types
M680xInstruction.Operand.IndexedAddressOperand referring to indexed addressing.
M680xInstruction.Operand.RelativeAddressOperand referring to relative addressing (Bcc/LBcc).
M680xInstruction.Operand.ExtendedAddressOperand referring to extended addressing.
Conforms To
InstructionOperandProtocol for instruction operands.
Properties
isInMnemonic
var isInMnemonic: Bool
true if the operand is implicit in the mnemonic.
size
var size: UInt8
Size of this operand (in bytes).
register
var register: M680xReg!
Register value for register operand.
nil when not an appropriate operand.
immediateValue
var immediateValue: Int32!
Immediate value for immediate operand.
nil when not an appropriate operand.
indexedAddress
var indexedAddress: IndexedAddress!
Indexed addressing operand.
nil when not an appropriate operand.
relativeAddress
var relativeAddress: RelativeAddress!
Relative addressing operand (Bcc/LBcc).
nil when not an appropriate operand.
extendedAddress
var extendedAddress: ExtendedAddress!
Extended address.
nil when not an appropriate operand.
directAddress
var directAddress: UInt16!
Direct address.
nil when not an appropriate operand.
constantValue
var constantValue: UInt8!
Constant value (bit index, page nr.).
nil when not an appropriate operand.