Table of Contents Previous topic Next topic
C COMPILER->In-Line Assembler Code->Function Return Value
The D0 data register contains the return value for functions that return an integral value.
Unless you have used either the /NO68881 or /CPU32 option, the FP0 68881 register contains the return value for functions that return a floating point value.
If you have used either the /NO68881 or /CPU32 option, the return value for floating point functions is placed (high byte first in IEEE format) at the address __CW68D002. This is a reserved data space 12 bytes wide. Float return values are located at __CW68D002+8, double return values are located at __CW68D002+4 and long double return values are located at __CW68D002.