User’s Manual MCUez HC12 Assembler
202 Assembler Directives MOTOROLA
Assembler Directives
8.38 XREF — External Symbol Reference
Syntax: XREF [.<size>] <symbol>[,<symbol>]...
where
<size> = B,W (default), or L
Description: This directive specifies symbols referenced in the current
module but defined in another module. The list of symbols and
corresponding 16-bit values are passed to the linker.
The number of symbols listed in an XREF directive is only
limited by the memory available at assembly time.
Example:
XREF OtherGlobal ; Reference "OtherGlobal" defined in
; another module
See also: 8.37 XDEF — External Symbol Definition