beautypg.com

Ifdef – Zilog EZ80F916 User Manual

Page 237

background image

UM014423-0607

ZiLOG Developer Studio II

eZ80Acclaim!

®

User Manual

217

Example

IF XYZ ; process code body 0 if XYZ is not 0
.
.
.

.
.
ENDIF
IF XYZ !=3 ; process code body 1 if XYZ is not 3
.
.
.

.
.
.
ELIF ABC ; process code body 2 if XYZ=3 and ABC is not 0
.
.
.

.
.
.
ELSE ; otherwise process code body 3
.
.
.

.
.
.
ENDIF

IFDEF

Checks for label definition. Only a single label can be used with this conditional. If the
label is defined, the result is true; otherwise, the result if false.

Syntax

IFDEF <label>

<code_body>

[ELSE

<code_body>]

This manual is related to the following products: