Table of Contents        Previous topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->XREF

XREF    Reference external symbols

The XREF directive lists the symbols that are used in the current module but which are defined in other modules.   


XREF[.S]    [<segment name>:](<symbol list>),[<segment name>:](<symbol list>),....

where<segment name> is the name of the section defined in the SECTION directive.  (At present the linker does not use this information).
and<symbol list> is a comma separated list of symbol names.
The optional .S indicates that the symbol value is less than 0FFH (although the assembler does not currently make use of this information).


    XREF    MYCODE:routine1,routine2,routine3,MYDATA:table1

    XREF    routine1,routine2,routine3,table1