English
Language : 

CC78K4 Datasheet, PDF (333/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
_ _boolean1 type variables
_ _boolean1
The following shows the number of usable _ _boolean1 type variables.
Table 11-25. Number of Usable _ _boolean1 Type Variables
Condition
When using saddr1 area [XFE00H to XFE7FH]
Restrictions (Per Load Module)
Max. 1024 variables can be used.
When sreg1 variables are used, however, the number of usable _ _boolean1 type variables is decreased.
EXAMPLE
(C source)
#define ON
1
#define OFF
0
extern void testb (void);
extern void chgb (void);
extern _ _boolean1 data1;
extern_ _boolean1 data2 ;
void main() {
data1 = ON;
data2 = OFF
while (data1) {
data1 = data2;
testb();
}
if (data1 && data2) {
chgb();
}
}
User’s Manual U15556EJ1V0UM
333