beautypg.com

Include – Zilog EZ80F916 User Manual

Page 226

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

206

expression, provided they are previously defined. Labels are not allowed in the expres-
sion.

Synonyms

.equ

,

.EQU

,

EQUAL

Syntax

<label>

EQU

<expression>

Example

length EQU 6 ; first dimension of rectangle
width EQU 11; second dimension of rectangle
area EQU length * width; area of the rectangle
myreg EQU HL ; 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.

Synonyms

.include

,

.copy

Syntax

<include_directive> =>

INCLUDE

[<string_const>]

Example

INCLUDE "calc.inc" ; include calc header file
INCLUDE "\test\calc.inc" ; contains a path name
INCLUDE calc.inc ; ERROR, use string constant

You cannot export

EQU

using the

XDEF

directive or import using

the

XREF

directive.

This manual is related to the following products: