English
Language : 

CC78K4 Datasheet, PDF (454/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
11.7.1 Return value
The function called stores the return value in the registers and carry flags as shown in Table 11-27.
Table 11-27. Storage Location of Return Values
Type
Model
1-byte integer
2-byte integer
4-byte integer
Pointer
Small Model
BC
BC (Lower)
RP2 (Higher)
BC
Structure, union
1 bit
Floating-point number
(float type)
Floating-point number
(double type)
BC (structure copied to the
area specific to the function,
the start address of the union)
CY (carry flag)
BC (Lower)
RP2 (Higher)
BC (Lower)
RP2 (Higher)
Medium Model
BC
BC (Lower)
RP2 (Higher)
BC (data pointer)
WHL (function pointer)
BC (structure copied to the
area specific to the function,
the start address of the union)
CY (carry flag)
BC (Lower)
RP2 (Higher)
BC (Lower)
RP2 (Higher)
Large Model
BC
BC (Lower)
RP2 (Higher)
TDE
TDE (structure copied to the
area specific to the function,
the start address of the union)
CY (carry flag)
BC (Lower)
RP2 (Higher)
BC (Lower)
RP2 (Higher)
454
User’s Manual U15556EJ1V0UM