Assembler Messages
Message Codes
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Messages 309
12.3.69 A12409: In PC Relative Addressing Mode, References to Object Located in
Another Section or File Only Allowed for IDX2 Addressing Mode
Type: Error
Description: A reference to an external symbol or a symbol defined in
another section is detected in a 9-bit or 5-bit indexed PC
relative addressing mode. This is not allowed.
Example:
dataSec: SECTION
data: DS.W 1
cstSec: SECTION
label: DC.W $33A5, $44BA
codeSec1: SECTION
entry:
MOVB label, PCR, data
Tip: Merge the sections containing the symbol and instruction or
change the instruction to an instruction supporting the 16-bit
indexed PC relative addressing mode.
Example of merging sections:
dataSec: SECTION
data: DS.W 1
codeSec1: SECTION
label: DC.W $33A5, $44BA
entry:
MOVB label, PCR, data
Example of changing instruction:
dataSec: SECTION
data: DS.W 1
cstSec: SECTION
label: DC.W $33A5, $44BA
codeSec1: SECTION
entry:
LDD label, PCR
STD data