English
Language : 

CC78K4 Datasheet, PDF (329/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
(Assembler source)
Indicates the case where the user creates a definition code of a bit type variable. The following example shows
the case of the large model (-ML) and the location 0FH (-CS15). In this example, if the compiler output section
name @@ BITS is used, a link error occurs since the bit segment is changed to the AT attribute. Therefore,
other segment names should be used (if the attribute is saddr2, the @@BITS segment name can be used).
PUBLIC _data1
PUBLIC _data2
BIT_SEG BSEG
_data1 DBIT
_data2 DBIT
;Declaration
AT 0FFD20H
;Allocation to segment
(Output object of compiler)
If an extern declaration is not added, the compiler outputs the codes shown below. The following shows the
case of the large model.
EXTRN _testb
EXTRN _chgb
PUBLIC _data1
PUBLIC _data2
PUBLIC _main
@@BITS BSEG SADDR2
_data1 DBIT
_data2 DBIT
User’s Manual U15556EJ1V0UM
329