English
Language : 

CC78K4 Datasheet, PDF (327/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
bit Type Variables
boolean Type Variables
bit
boolean
_ _boolean
RESTRICTIONS
• An operation on two bit or boolean type variables is performed by using the carry flag.
For this reason, the contents of the carry flag between statements are not guaranteed.
• Arrays cannot be defined or referenced.
• A bit or boolean type variable cannot be used as a member of a structure or union.
• This type of variable cannot be used as the argument type of a function.
• The variable cannot be declared with an initial value.
• If the variable is described along with a const declaration, the const declaration is ignored.
• Only operations using 0 and 1 can be performed by the operators and constants shown in the following table.
• *, & (pointer reference, address reference), and sizeof operations cannot be performed.
• When the -ZA option is specified, only _ _boolean is enabled.
Table 11-22. Operators That Use Only Constants 0 or 1 (When Using bit Type Variable)
Classification
Assignment
Bitwise AND
Bitwise XOR
Logical AND
Equal
Operator
=
&, &=
^, ^=
&&
==
Classification
Operator
Bitwise OR
|, |=
Logical OR
||
Not Equal
!=
User’s Manual U15556EJ1V0UM
327