English
Language : 

CC78K0S Datasheet, PDF (446/520 Pages) NEC – C Compiler Ver.1.30 or Later 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-16.
Table 11-16. Location of Storing Return Value
Type
1-byte integer
2-byte integer
4-byte integer
Pointer
Structure, union
Model
1 bit
Floating-point number (float type)
Floating-point number (double type)
Normal Model
BC
BC (Lower)
DE (Upper)
BC
BC (if copied to the area specific to the
function, the start address of the
structure or union)
CY (carry flag)
BC (Lower)
DE (Upper)
BC (Lower)
DE (Upper)
Static Model
A
AX
Not supported
AX
Not supported
CY (carry flag)
Not supported
Not supported
446
User’s Manual U14872EJ1V0UM