beautypg.com

Overview of the assembler directives – Echelon Neuron User Manual

Page 142

background image

Overview of the Assembler Directives

An assembler directive provides information to the Neuron Assembler to control

or affect the processing of the remainder of the assembly file. All directives are

optional. Many assembly files do not require any directives.
Table 60 lists the directives for the Neuron Assembler, grouped by general

function: symbol control and scope control, data allocation, segment control,

conditional assembly, and other directives.

Table 60. Neuron Assembler Directives

Symbols and Scope Control

APEXP, EXPORT

Export symbol

EQU

Define mnemonic for constant

IMPORT

Import external symbol for linkage

INCLUDE

Include assembly source file

LIBRARY

Import function library

Data Allocation

DATA.B

Define initialized data

RES

Reserve space for uninitialized data

Segment Control

ORG

Specify location in segment

SEG

Select segment

Conditional Assembly

ELSE, ELSEIF

Control conditional assembly

ENDIF, IF

ERROR

IFDEF, IFNDEF

Other Directives

END

End assembly

LIST, NOLIST, PAGE, SUBHEAD

Control listing

132

Neuron Assembler Directives