Chapter 8 Writing Source Statements

Logical operators

Logical operators perform calculation in bit units.

Operator

Meaning

&Logical AND

^ Exclusive OR

Logical OR

-Unary negation (1’s complement)

Formats:

 

Example:

 

operand1

&

operand2

ADDRESS & MASK

operand1

^

operand2

CONST ^ 0b0011110000

operand1

operand2

VECT 0b0011110000

~operand

 

 

-MAIN

Expressions 139

Page 151
Image 151
Panasonic MN1030 user manual Logical operators perform calculation in bit units, Formats Example Operand1 Operand2