Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER->In Line Assembler Code->Function Return Value

For functions that return integer values, the return value is placed (low byte first) at  address __CW51D001.  This is a reserved data space 4 bytes wide.  

For floating point functions, the return value is placed (low byte first in IEEE format) at the address __CW51D003.  This is a reserved data space 8 bytes wide.

Note for users upgrading from the 8051PSDS:  The 8051PSDS-A stores variables in the reverse order to the 8051PSDS.  Assembler code access to char's, shorts, float's and doubles has therefore changed.