Okay. - The high halves of R2 through R14 must go back as they arrived. - The high halves of R15 through R1 are fair game. You can use a grande instruction or an IBM macro in your subprogram and not worry about restoring R15 through R1.
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Tom Marchant Sent: Monday, June 13, 2016 2:14 PM To: [email protected] Subject: Re: LINK and high order word of R1 On Mon, 13 Jun 2016 14:05:40 -0700, Charles Mills <[email protected]> wrote: >Okay, got it. The rules for a called program and the rules for the IBM macros >are the same (except as otherwise explicitly specified): > Not quite: <quote> o The low halves (Bits 32-63) of GPRs 2 through 13 are unchanged o The high halves (Bits 0-31) of GPRs 2 through 14 are unchanged </quote> It seems to me that the low half of 14 should be unchanged as well, but that's not what the book says. -- Tom Marchant ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
