EXTERN - Declare an Externally Defined Label

MPASM Assembler

EXTERN - Declare an Externally Defined Label

Syntax

extern <label> [, <label>...]

Description

For use when generating an object file. Declares symbol names that may be used in the current module but are defined as global in a different module.

The extern statement must be included before the <label> is used. At least one label must be specified on the line. If <label> is defined in the current module, MPASM assembler will generate a duplicate label error.

For more information, refer to Relocatable Objects.

Example

extern Function

:

call Function

See Also

GLOBAL IDATA UDATA UDATA_ACS UDATA_OVR UDATA_SHR


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext