Logical Operators - Panasonic PanaXSeries MN1030 Series User Manual

Panasonic microcomputer user's manual
Table of Contents

Advertisement

Logical operators

Logical operators perform calculation in bit units.
Formats:
operand1
operand1
operand1
~operand
Operator
&
Logical AND
^
Exclusive OR
|
Logical OR
-
Unary negation (1's complement)
Example:
&
operand2
^
operand2
|
operand2
Meaning
ADDRESS & MASK
CONST ^ 0b0011110000
VECT | 0b0011110000
-MAIN
Chapter 8 Writing Source Statements
Expressions 139

Advertisement

Table of Contents
loading

Table of Contents