beautypg.com

Include, Equ include – Zilog ZUSBOPTS User Manual

Page 261

background image

UM017105-0511

Directives

Zilog Developer Studio II – ZNEO™

User Manual

233

Synonym

.end

Syntax

<end_directive> =>

END

[<expression>]

Example

END _start ; Use the value of _start as the program start

address.

EQU

Assigns symbolic names to numeric or string values. Any name used to define an equate
must not have been previously defined. Other equates and label symbols are allowed in

the expression, provided they are previously defined.

Synonyms

.equ

,

.EQU

,

EQUAL

,

.equal

Syntax

<label>

EQU

<expression>

Examples

length EQU 6 ; 1st dimension of rectangle

width EQU 11 ; 2nd dimension of rectangle

area EQU length * width ; area of the rectangle

reg EQU r7 ; symbolic name of a register

INCLUDE

Allows the insertion of source code from another file into the current source file during
assembly. The included file is assembled into the current source file immediately after the
directive. When the EOF (End of File) of the included file is reached, the assembly
resumes on the line after the

INCLUDE

directive.

The file to include is named in the string constant after the

INCLUDE

directive. The file

name can contain a path. If the file does not exist, an error results, and the assembly is
aborted. A recursive

INCLUDE

also results in an error.

INCLUDE

files are contained in the listing (

.lst

) file unless a

NOLIST

directive is active.

This manual is related to the following products: