A166 User's Guide

EXTERN Assembler Statement

Arguments
EXTERN <[>DPPn<]> symbol: type <[>, symbol: type ...<]>
Description

The EXTERN statement (which may appear anywhere in the assembler source file) specifies symbols that the current source file uses but which are defined in other object modules. The module where the symbols are defined must export them using GLOBAL or PUBLIC statements. The EXTERN statement specifies the symbol and its type.

Following is a list of valid types:

typeDescription
BITA bit variable.
BIT WORDA bit-addressable word.
BYTEA byte variable.
DATA3A 3-bit constant.
DATA4A 4-bit constant.
DATA8An 8-bit constant.
DATA16A 16-bit constant.
DATA32A 32-bit constant.
DATA64A 64-bit constant.
FARA far label.
INTNOA symbolic interrupt number.
NEARA near label.
REGBANKA register bank name.
WORDA word variable.

The EXTERN statement may appear anywhere in the assembler source file

The linker resolves all external symbols and verifies that the types match.

See Also

EXTRN, GLOBAL, PUBLIC

Example
EXTERN   TRAPX : INTNO
EXTERN   yvar  : WORD
EXTERN   ExBit : BIT, FProc : FAR, NProc : NEAR