Re: LINK and high order word of R1

2016-06-14 Thread Peter Relson
If someone is curious why: -- low halves 2-13 are expected to be preserved, but -- high halves 2-14 are expected to preserved it relates to a call sequence that involves an old module that has no idea that high halves even exist, one case where that old module is entered via BASSM and returns vi

Re: LINK and high order word of R1

2016-06-13 Thread Ed Jaffe
On 6/13/2016 3:26 PM, Charles Mills wrote: Makes sense. It does seem to me that I have seen code -- kids, don't try this at home -- that used R14 as a temporary base register on return from a call. You know, back in the pre-branch-relative days when you could be desperate for a base register.

Re: LINK and high order word of R1

2016-06-13 Thread Farley, Peter x23353
PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: LINK and high order word of R1 Makes sense. It does seem to me that I have seen code -- kids, don't try this at home -- that used R14 as a temporary base register on return from a call. You know, back in the pre-branch-relative days when you cou

Re: LINK and high order word of R1

2016-06-13 Thread Charles Mills
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Tom Marchant Sent: Monday, June 13, 2016 2:37 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: LINK and high order word of R1 On Mon, 13 Jun 2016 16:14:25 -0500, Tom Marchant wrote: >It seems to me that the low ha

Re: LINK and high order word of R1

2016-06-13 Thread Tom Marchant
On Mon, 13 Jun 2016 16:14:25 -0500, Tom Marchant wrote: >It seems to me that the low half of 14 should be unchanged as well, but that's >not what the book says. Looking over my correspondence with Peter when he was rewriting Chapter 2, I asked about the low half of R14. He replied, quite correc

Re: LINK and high order word of R1

2016-06-13 Thread Charles Mills
Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Tom Marchant Sent: Monday, June 13, 2016 2:14 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: LINK and high order word of R1 On Mon, 13 Jun 2016 14:05:40 -0700, Charles Mills wrote: >Okay, got it. The rules for a called program and

Re: LINK and high order word of R1

2016-06-13 Thread Tom Marchant
On Mon, 13 Jun 2016 14:05:40 -0700, Charles Mills 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): > >- The high halves of R2 through R13 must go back as they arrived. >- The high halves of R14 through

Re: LINK and high order word of R1

2016-06-13 Thread Charles Mills
order word of R1 On Mon, 13 Jun 2016 11:19:06 -0700, Charles Mills wrote: >In the description of LINK in Assembler Services I read > >... > >Does that mean that for standard "old-fashioned" AMODE 31 72-byte savearea >linkage I am obligated to save the high word of R1 befo

Re: LINK and high order word of R1

2016-06-13 Thread Tom Marchant
On Mon, 13 Jun 2016 11:19:06 -0700, Charles Mills wrote: >In the description of LINK in Assembler Services I read > >... > >Does that mean that for standard "old-fashioned" AMODE 31 72-byte savearea >linkage I am obligated to save the high word of R1 before issuing LINK in a >called program? If so

Re: LINK and high order word of R1

2016-06-13 Thread Farley, Peter x23353
ee. Peter -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Monday, June 13, 2016 3:28 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: LINK and high order word of R1 So you are saying "if you write a standard (legacy

Re: LINK and high order word of R1

2016-06-13 Thread Charles Mills
-Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Monday, June 13, 2016 12:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: LINK and high order word of R1 On Mon, 13 Jun 2016 11:19:06 -0700, Charles Mills wrote: > >

Re: LINK and high order word of R1

2016-06-13 Thread Charles Mills
ubject: Re: LINK and high order word of R1 On 6/13/2016 11:18 AM, Charles Mills wrote: > Does that mean that for standard "old-fashioned" AMODE 31 72-byte > savearea linkage I am obligated to save the high word of R1 before > issuing LINK in a called program? If so, this would

Re: LINK and high order word of R1

2016-06-13 Thread Paul Gilmartin
On Mon, 13 Jun 2016 11:19:06 -0700, Charles Mills wrote: > >Does that mean that for standard "old-fashioned" AMODE 31 72-byte savearea >linkage I am obligated to save the high word of R1 before issuing LINK in a >called program? If so, this would seem to be a compatibility issue for older >code tha

Re: LINK and high order word of R1

2016-06-13 Thread Greg Dyck
On 6/13/2016 11:18 AM, Charles Mills wrote: Does that mean that for standard "old-fashioned" AMODE 31 72-byte savearea linkage I am obligated to save the high word of R1 before issuing LINK in a called program? If so, this would seem to be a compatibility issue for older code that uses LINK. Or i

LINK and high order word of R1

2016-06-13 Thread Charles Mills
In the description of LINK in Assembler Services I read If the LINK is not successful and the caller provided an ERRET exit to receive control, the GPRs contain the following: Register Contents ... 1 Bits 0-31 of the 64 bit register contain the abend reason code for the abend code for the ABEND th