Assembler messages – Motorola HC12 User Manual
Page 310

User’s Manual
MCUez HC12 Assembler
310
Assembler Messages
MOTOROLA
Assembler Messages
12.3.70 A12411:Restriction: Label Specified in a DBNE, DBEQ, IBNE, IBEQ, TBNE, or
TBEQ Instruction Should Be Defined in the Same Section They Are Used
Type:
Error
Description:
An external symbol or a symbol defined in another section has
been detected in a DBNE, DBEQ, IBNE, IBEQ, TBNE, or
TBEQ instruction.
This is not allowed in a relocatable section.
Example:
dataSec: SECTION
data: DS.W 1
codeSec0: SECTION
label:
NOP
NOP
codeSec1: SECTION
entry:
DBNE A, label
Tip:
Merge the sections containing the symbol and instruction or
change the instruction to an instruction that supports the 16-bit
indexed PC relative addressing mode.
Example of merging sections:
dataSec: SECTION
data: DS.W 1
codeSec0: SECTION
label:
NOP
NOP
entry:
DBNE A, label
Example of changing instruction:
dataSec: SECTION
data: DS.W 1
codeSec0: SECTION
label:
NOP
NOP
codeSec1: SECTION
entry:
DECA
BNE label