A166 User's Guide

EXTRN Assembler Statement

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

The EXTRN 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 EXTRN 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 EXTRN statement may appear anywhere in the assembler source file

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

See Also

EXTERN, GLOBAL, PUBLIC

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