Module msp430_asm::operand
source · Enums
Represents a source or destination operand. This represents all
addressing mode represented by AS/AD with their corresponding register
pairs. In msp430 the valid destination operands are a subset of the
source operands. Due to cases in the implementation where it is necessary
to sometimes use a source as a destination (br emulated instruction) or
compare a source and a destination rather than create separate types for
source and destination they share one. The enforcement that a valid
destination is specified, as all operands are valid for source, is left
to the implementation of the decoding logic or assembling logic.
Specifies whether the operand (source or destination) will be used as a
byte or a word.
Functions
Parses a destination operand from an input stream. This is only used for
AD modes where the destination operand is stored as an additional word
of data. Otherwise the destination operand can be fully decoded from just
reading the the instruction word
Parses a source operand from an input stream. This is only used for AS
modes where the source operand is stored as an additional word of data.
Otherwise the source operand can be fully decoded from just reading the
the instruction word