__xregs() — Get Registers on Entry

Purpose

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.

Format

#include <spc.h>

int __xregs(int register);

Returned value

__xregs() returns the value found.