English
Language : 

CC78K4 Datasheet, PDF (328/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
Table 11-23. Number of Usable bit Type Variables
Condition
When -QR option is specified
(saddr2 area [XFD20H to XFDDFH])
When -QR option is not specified
(saddr2 area [XFD20H to XFDFFH])
Restrictions (Per Load Module)
Max. 1536 variables can be used.
Max. 1792 variables can be used.
The number of usable bit type variables is decreased if sreg variables are used or the -RD and -RS (automatic
saddr allocation option) options are specified.
EXAMPLE
(C source)
#define ON 1
#define OFF 0
extern void testb (void);
extern void chgb (void);
extern bit data1;
extern _ _boolean data2;
void main () {
data1 = ON;
data2 = OFF;
while (data1) {
data1 = data2;
testb();
}
if (data1 && data2) {
chgb();
}
}
328
User’s Manual U15556EJ1V0UM