This routine finds the value a specified register had on entry to EDCXSTRT, EDCXSTRL, EDCXSTRX, or the main routine of an exit routine compiled with #pragma environment(…).
__xregs() is available in these environments only. For more information about EDCXSTRT, EDXSTRL, or EDCXSTRX, see Creating freestanding applications.
__xregs() is specific to SP C. It is part of the client-server group of functions.
The function is also available under the name EDCXREGS.
#include <spc.h>
int __xregs(int register);
__xregs() returns the value found.