English
Language : 

CC78K4 Datasheet, PDF (330/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
(Output object of compiler…continued)
@@CODE CSEG
_main:
set1
clr1
L0003:
bf
mov1
mov1
call
br
L0004:
bf
bf
call
L0005:
L0006:
ret
END
_data1
_data2
;Initialize by 1
;Initialize by 0
_data1, $L0004 ;Judgment
CY, _data2
;Assignment
_data1, CY
;Assignment
!!_testb
$L0003
_data1, $L0005 ;Logical AND expression
_data2, $L0005 ;Logical AND expression
!!_chgb
COMPATIBILITY
From another C compiler to this C compiler
• Modification is not required if the keyword bit, boolean, or _ _boolean is not used.
• When changing variables to bit or boolean type variables, modify the program according to the method
above.
From this C compiler to another C compiler
• #define must be used. For details, see 11.6 Modifications of C Source (As a result of this modification,
the bit or boolean type variables are handled as ordinary variables.).
330
User’s Manual U15556EJ1V0UM