Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
PC routine that receives control in AR mode z/OS MVS Programming: Extended Addressability Guide SA23-1394-00 |
|||||||||
After receiving control, the PC routine must establish addressability by loading a base register. The PC routine must also load an ALET of 0 into the AR that corresponds to the base register. Addresses that the caller passes to the PC routine must be qualified
by an ALET. Before using an ALET, the PC routine must check the ALET:
Addressability to the latent parameter area is through the primary address space. When the PC routine receives control, general register 4 contains the address of the latent parameter area. Before referencing the latent parameter area, the PC routine must set AR 4 to a value of 0. Before returning control to the user, the PC routine must do the
following:
To restore the caller's environment and return control, the PC routine must issue the PR instruction. The following examples compare the linkage conventions for the basic PC (first example) to the conventions for the stacking PC (second example). Both the user program and the PC routine are in primary mode.
If the PC routine is in AR mode, the following is an example of
the instructions you can use to establish addressability:
See Using access registers for information about being in AR mode and manipulating the contents of ARs. |
Copyright IBM Corporation 1990, 2014
|