beautypg.com

Export (export symbol), Export, Export symbol) – Echelon Neuron User Manual

Page 152

background image

EXPORT (Export Symbol)

The EXPORT directive is used to export symbols that interface with other

Neuron Assembly modules.
An exported symbol must be defined as a label within the assembly file from

which it is exported. Exporting the symbol makes it available to the linker. The

linker uses exported symbols to resolve references from other object modules. It

is possible, and sometimes required, to export and import a symbol within the

same assembly file to permit the linker to resolve expressions between separate

segments.
See also APEXP (Application Symbol Export).

Syntax
:
The EXPORT directive requires either a label or an argument, or both.

label

EXPORT

EXPORT symbol

EXPORT symbol, symbol, ...
label

EXPORT symbol

label

EXPORT symbol, symbol, ...

An argument can be a symbol, or it can be a list of symbols separated by commas.

The argument specifies the symbols to be exported. If there is no argument for

the directive, it must have a label, and the label becomes the exported symbol. If

there are both an argument and a label, the argument specifies the symbols to be

exported and the label is a standard label.

Examples
:
The following example exports the label myFunction as a symbol to another

Neuron assembly module:

myFunction EXPORT

The following example exports the symbols Flag1 and Flag2 to a Neuron

assembly module:

InFlags EXPORT Flag1, Flag2

142

Neuron Assembler Directives