Directives – Zilog EZ80F916 User Manual

Page 216

Advertising
background image

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:

“ALIGN” on page 197

“.COMMENT” on page 197

“CPU” on page 198

“Data Directives” on page 199

“DEFINE” on page 203

“DS” on page 205

“END” on page 205

“EQU” on page 205

“INCLUDE” on page 206

Table 9. Operator Precedence

Level 1

()

Level 2

~

unary- !

high

low

Level 3

**

*

/

%

Level 4

+

-

&

|

^

>>

<<

Level 5

<

>

<=

>=

==

!=

Advertising
This manual is related to the following products: