Ifdef, Ifsame – Zilog ZUSBOPTS User Manual
Page 274
Conditional Assembly
UM017105-0511
246
Zilog Developer Studio II – ZNEO™
User Manual
.
.
ELSE ; otherwise 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>]
ENDIF
Example
IFDEF XYZ ; process code body if XYZ is defined
.
.
.
<Code Body>
.
.
.
ENDIF
IFSAME
Checks to see if two string constants are the same. If the strings are the same, the result is
true; otherwise, the result is false. If the strings are not enclosed by quotes, the comma is
used as the separator.
Syntax
IFSAME
<string_const> , <string_const>
<code_body>
[
ELSE