beautypg.com

Can be referenced in an equ expression, Assembler messages – Motorola HC12 User Manual

Page 280

background image

User’s Manual

MCUez HC12 Assembler

280

Assembler Messages

MOTOROLA

Assembler Messages

12.3.40 A2334:Only Labels Defined in the Current Assembly Unit

Can Be Referenced in an EQU Expression

Type:

Error

Description:

One of the symbols specified in an EQU expression is an
external symbol, which was previously specified in an XREF
directive. This is not allowed due to a limitation in the ELF file
format.

Example:

XREF label

CstSec: SECTION

lab: DC.B 6

...

equLabel: EQU label+6

...

Tip:

An EQU label containing a reference to an object must be
defined in the same assembly module as the object they refer
to. Then the EQU label can be exported to other modules in the
application.

Example:

XDEF label, equlabel

...

CstSec: SECTION

lab: DC.B 6

label: DC.W 6

...

equLabel: EQU label+6

...