Table of Contents Previous topic Next topic
ASSEMBLER DIRECTIVES->Other Assembler Directives->EXTRN
EXTRN Define External Symbols
The EXTRN directive lists the symbols that are used in the current module but which are defined in other modules.
Format:
EXTRN <segment type>(<symbol list>)
where <segment type> is one of CODE, XDATA, DATA, IDATA, BIT or NUMBER
and <symbol list> is a comma separated list of symbol names.
The cross assembler will check the segment type to ensure that it is appropriate for the operand in which the symbol is being used. NUMBER is typeless and symbols with this type can be used anywhere.
Eg:
EXTRN CODE(routine1,routine2,routine3)