You are correct, PR unstacks Regs 2-14 and Access Regs 2-14.
________________________________
From: IBM Mainframe Assembler List <[email protected]> on behalf
of Dave Clark <[email protected]>
Sent: Friday, January 21, 2022 11:27 AM
To: [email protected] <[email protected]>
Subject: Re: BAKR/PR and R15 Return code
CAUTION: This message was sent from outside the company. Do not click links or
open attachments unless you recognize the sender and know the content is safe.
David L Clark/it/crp/WinWholesale wrote on 01/21/2022 12:18:30 PM:
> Previously, when using STM/LM for the caller's 72-byte save area, I
> would store my R15 return code in the caller's save area before
> issuing LM/BR to return to caller. My question is, in a BAKR/PR
> situation, how do you pass back what would normally be a register 15
> return code? I'm trying to wade though the information on the PR
> instruction in hopes of finding this answer, but there is quite a
> lot of it -- over 3 pages.
Oh, it looks like only registers 2-14 are unstacked by the PR
instruction. So, anything in register 15 (like a return code) would
remain. Let me know if I've got that wrong. Thanks.
Sincerely,
Dave Clark
--
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************
-------------------------------------------
NOTICE:
This email and all attachments are confidential, may be proprietary, and may be
privileged or otherwise protected from disclosure. They are intended solely for
the individual or entity to whom the email is addressed. However, mistakes
sometimes happen in addressing emails. If you believe that you are not an
intended recipient, please stop reading immediately. Do not copy, forward, or
rely on the contents in any way. Notify the sender and/or Imperva, Inc. by
telephone at +1 (650) 832-6006 and then delete or destroy any copy of this
email and its attachments. The sender reserves and asserts all rights to
confidentiality, as well as any privileges that may apply. Any disclosure,
copying, distribution or action taken or omitted to be taken by an unintended
recipient in reliance on this message is prohibited and may be unlawful.
Please consider the environment before printing this email.