English
Language : 

CC78K0S Datasheet, PDF (475/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 12 REFERENCING THE ASSEMBLER
12.2 Storing Return Values
Return values during function calls are stored to registers and carry flags.
The storage locations of return values are shown in the table below.
Table 12-5. Storage Location of Return Values
Type
1-byte integer
2-byte integer
4-byte integer
Pointer
Structure, union
1 bit
Floating-point number
Normal Model
BC
BC (lower), DE (higher)
BC
BC (start address of structure or union copied
to function-specific area)
CY (carry flag)
BC (low-order), DE (high-order)
Static Model
A
AX
Not supported
AX
Not supported
CY (carry flag)
Not supported
User’s Manual U14872EJ1V0UM
475