Assembler Syntax
Source Line
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Syntax 129
7.4.3 Operand Fields
The operand fields, when present, follow the operation field and are separated
by white space. When two or more operand subfields appear within a statement,
a comma must separate them.
The address mode notations in Table 7-2 are allowed in the operand field.
In Table 7-2:
• xysp stands for one of the index registers: X, Y, SP, PC, or PCR
• xys stands for one of the index registers: X, Y, or SP
• abd stands for one of the accumulators: A, B, or D
Table 7-2. Addressing Mode Notations
Addressing Mode Notation
Inherent No operands
Direct <8-bit address>
Extended <16-bit address>
Relative <PC relative, 8-bit offset> or
<PC relative, 16-bit offset>
Immediate #<immediate 8-bit expression> or
#<immediate 16-bit expression>
Indexed, 5-bit offset <5-bit offset>, xysp
Indexed, pre-decrement <3-bit offset>, -xys
Indexed, pre-increment <3-bit offset>, +xys
Indexed, post-decrement <3-bit offset>, xys-
Indexed, post-increment <3-bit offset>, xys+
Indexed, accumulator offset abd, xysp
Indexed, 9-bit offset <9-bit offset>, xysp
Indexed, 16-bit offset <16-bit offset>, xysp
Indexed-Indirect, 16-bit offset [<16-bit offset>, xysp]
Indexed-Indirect, D accumulator offset [D, xysp]