Hello... The link says:
"All AMODE 31 programs that are involved in the interoperability scenario need to be non-XPLINK. All AMODE 31 and AMODE 64 programs that are involved in the interoperability scenario need to be reentrant." Joe On Tue, Jun 28, 2022 at 2:59 PM Denis < 000001664d8ede6c-dmarc-requ...@listserv.ua.edu> wrote: > Hi Joe, > you should have a look at LE 31/64 bit interoperability: > > https://www.ibm.com/docs/en/zos/2.4.0?topic=interoperability-introduction-amode-31-amode-64-programs > Denis. > > -----Original Message----- > From: Joe Monk <joemon...@gmail.com> > To: IBM-MAIN@LISTSERV.UA.EDU > Sent: Tue, Jun 28, 2022 7:33 pm > Subject: Re: is there any documentation on using the new 64 bit > instructions? > > If youre using LE, you can't mix 31 and 64 bit, because 64-bit C using LE > uses a 64-bit XPLINK which passes parameters from the stack above the bar. > > I think you will have to write a glue assembler module to receive control > in AMODE 64 then SAM31 CALL SAM64 and back. > > Joe > > > > On Tue, Jun 28, 2022 at 9:13 AM Colin Paice <colinpai...@gmail.com> wrote: > > > I've been working on calling an (amode 31) assembler program from a 64 > bit > > C program, and have been struggling.Is there is a good guide on how to > use > > these new instructions? > > For example > > 1) > > I've found you need to use a LLGTR R1... instruction to clear the > register > > before using a L R1... because without it the high part of the register > > will have some 64 bit rubbish in it > > > > 2) > > I used > > > > BAKR R14,0 > > PR > > But it kept returning in amode 24 bit mode. It needs BSM 14,0 before > > the BAKR.__ > > > > The POP tells you all about the instructions - but not how to use it. > The > > z/OS doc says use BACK/PR without mentioning the BSM, so this is not > > completely trustworthy. > > _________________________ > > Is there a better place to ask? > > > > Colin > > > > ---------------------------------------------------------------------- > > 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 > > ---------------------------------------------------------------------- > 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