Admittedly IEFBR14 will work fine in AMOD64 if the high 32 bits of R14 and R15 
are zero. However, if you have to deal with legacy 24-bit code, then you have 
to deal with the incompatibility between AMODE24 and AMODE64.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu> on behalf of 
Paul Edwards <mutazi...@gmail.com>
Sent: Wednesday, May 9, 2018 7:10 PM
To: IBM-MAIN@listserv.ua.edu
Subject: Re: GETMAIN LOC=32

On Wed, 9 May 2018 20:04:57 +0000, Seymour J Metz <sme...@gmu.edu> wrote:

>>What do you suggest calling a module that has been built on MVS 3.8j,
>>using 32-bit registers for both data and addresses, and works fine as
>>AM24, and then has been taken to z/OS and the "PDS" utility has been
>>used to mark it as AM64, and the program runs fine, regardless of what
>>AMODE it has been set to?
>
>"implausible"; various instructions work differently in AM24 and AM31, much 
>less AM64.

It's not implausible, it's what I do. I produce 32-bit
load modules that work on all 3 AMODEs. They
passively accept whatever AMODE they were
called with. They don't even require different code
paths internally.

BFN. Paul.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to