z/TPF register save area
The primary function of the z/TPF register save area is to save registers 14, 15, and 0 through 7 (the general application use registers) plus register 8 (the application program base register) whenever the application program surrenders control by issuing a control program macro. When control is returned to the application program, the registers are restored from this area.
Use the following macros to access the z/TPF register
save area information:
- The LREGSC macro loads the contents of the register save area for the ECB into the requested registers.
- The LBASEC macro loads the program base of the BAL shared object (BSO) that is currently processing for the issuing ECB.
- The SREGSC macro stores the contents of the requested registers into the register save area of the ECB.
A main storage dump shows the contents of the registers at the time of the last control program macro, which can be helpful in pinpointing the section of code that was processing at that time.