User’s Manual MCUez HC12 Assembler
234 Operating Procedures MOTOROLA
Operating Procedures
11.6.3 Defining Symbols in the Direct Page
Symbols that are defined in the predefined section BSCT are always accessed
using the direct addressing mode.
Example:
BSCT
DirLabel: DS.B 3
dataSec: SECTION
ExtLabel: DS.B 5
codeSec: SECTION
LDD DirLabel ; Direct addressing mode is used
LDD ExtLabel ; Extended addressing mode is used
11.6.4 Using a Force Operator
A force operator can be specified in an assembly instruction to force direct or
extended addressing mode.
The supported force operators are:
< or .B to force direct addressing mode
> or .W to force extended addressing mode
Example:
dataSec: SECTION
label: DS.B 5
codeSec: SECTION
LDD <label ; Direct addressing mode is used
LDD label.B; Direct addressing mode is used
LDD >label ; Extended addressing mode is used
LDD label.W ; Extended addressing mode is used