Operand Field: Addressing Modes

The operand fields, when present, follow the operation field and are separated from it by a white space. When two or more operand subfields appear within a statement, a comma must separate them.

The following table lists the addressing mode notatio ns allowed in the operand field:

Table 1. HCS12Z Addressing Mode Notation
Addressing Mode Notation Example
Inherent No operand RTS
Register INST Di ADD D0,D1
Immediate INST #oprimmsz ADD D2,#45
Relative INST oprdest JSR label
Extended (14 bit address) INST opru14 ADD D4,100
Extended (18 bit address) INST opru18 ADD D5,65536
Extended (24 bit address) INST opru24 ADD D7,4194304
Indexed - IDX INST (opru4,XYS) ADD D1,(10,X)
Indexed - IDX1 INST (oprs9, XYSP) ADD D4,(254, X)
Indexed - IDX3 INST (opr24, XYSP) ADD D6,(8388604, X)
Indexed Indirect INST [Di,XYS] ADD D0,[D0,X]
Indexed Indirect - s9 INST [oprs9,XYSP] ADD D3,[254, X]
Indexed Indirect - 24b INST [opr24, XYSP] ADD D7,[8388000, Y]
Extended 3 INST opr24 JSR 8388000
Indexed Indirect Extended 3 INST [opr24] LD D6,[4552]
Note: For more information on the operands specified in Notation column, refer to the chapter Symbols and Notation.

This section includes the following topics: