Relational operators, Boolean operators, Low and low16 operators – Zilog ZUSBOPTS User Manual
Page 249: Boolean operators low and low16 operators

UM017105-0511
Expressions
Zilog Developer Studio II – ZNEO™
User Manual
221
You must put spaces before and after the modulus operator to separate it from the rest of
the expression.
Relational Operators
For use only in conditional assembly expressions.
Boolean Operators
LOW and LOW16 Operators
The LOW and LOW16 operators can be used to extract the least significant byte or 16-bit
word from an integer expression. The LOW operator extracts the byte starting at bit 0 of
the expression; the LOW16 operator extracts the 16-bit word starting at bit 0 of the expres-
sion.
For example:
x equ %123456
+
Addition
-
Subtraction
==
Equal
Synonyms: .eq., .EQ.
!=
Not Equal
Synonyms: .ne., .NE.
>
Greater Than
Synonyms: .gt., .GT.
<
Less Than
Synonyms: .lt., .LT.
>=
Greater Than or Equal
Synonyms: .ge., .GE.
<=
Less Than or Equal
Synonyms: .le., .LE.
&
Bit-wise AND
Synonyms: .and., .AND.
|
Bit-wise inclusive OR
Synonyms: .or., .OR.
^
Bit-wise exclusive XOR Synonyms: .xor., .XOR.
~
Complement
!
Boolean NOT
Synonyms: .not., .NOT.
Note: