Directives – Zilog EZ80F916 User Manual
Page 216

UM014423-0607
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
196
NOTE: Shift Left (<<) and OR (|) have the same operator precedence and are evaluated
from left to right. If you need to alter the order of evaluation, add parentheses to
ensure the desired operator precedence. For example:
ld a, 1<<2 | 1<<2 | 1<<1
The constant expression in the preceding instruction evaluates to 2A H.
If you want to perform the Shift Left operations before the OR operation, use parentheses
as follows:
ld a, #(1<<2)|(1<<2)|(1<<1)
The modified constant expression evaluates to 6 H.
DIRECTIVES
Directives control the assembly process by providing the assembler with commands and
information. These directives are instructions to the assembler itself and are not part of the
microprocessor instruction set. The following sections provide details for each of the sup-
ported assembler directives:
•
•
•
•
•
•
•
•
•
Table 9. Operator Precedence
Level 1
()
Level 2
~
unary- !
high
low
Level 3
**
*
/
%
Level 4
+
-
&
|
^
>>
<<
Level 5
<
>
<=
>=
==
!=