English
Language : 

CC78K4 Datasheet, PDF (474/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 12 REFERENCING THE ASSEMBLER
12.2 Storing Return Values
Return values during function calls are stored in registers and carry flags.
The storage locations of return values are shown in the table below.
Table 12-3. Storage Location of Return Values
Type
1-byte integer
2-byte integer
4-byte integer
Pointer
Structure, union
1 bit
Floating-point number
Small Model
BC
Medium Model
BC
Large Model
BC
BC (lower), RP2 (higher)
BC
BC (start address of structure or
union copied to function-specific
area)
CY
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
BC (data pointer)
WHL (function pointer)
BC (start address of structure
or union copied to function-
specific area)
CY
BC (lower), RP2 (higher)
BC (lower), RP2 (higher)
TDE
TDE (start address of structure
or union copied to function-
specific area)
Y
C (lower), RP2 (higher)
474
User’s Manual U15556EJ1V0UM