English
Language : 

CC78K4 Datasheet, PDF (95/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
(2) Bitwise XOR operators
Bitwise XOR Operators
^
FUNCTION
The binary ^ (caret) operator is a bitwise exclusive OR operator that returns an integral value that has a “1” bit in
each position where exactly one of the operands has a “1” bit and that has a “0” bit in each position where both
operands have a “1” bit or both have a “0” bit.
Table 5-5. Bitwise XOR Operation
Value of
1
each bit in
right operand
0
Value of Each Bit in Left Operand
1
0
0
1
1
0
SYNTAX
E1 ^ E2
User’s Manual U15556EJ1V0UM
95