On Thu, 14 Aug 2025 20:26:14 -0400, Joseph Reichman <[email protected]> 
wrote:

>It seems there is not too much documentation on running a program rmode64

There is plenty of documentation. z/OS Extended Addressability Guide, Binder 
ref, ASM macro refs and more. 

You're overcomplicating RMODE 64. Standard functions load them (Attach, load, 
link, binder, ...). Code for AMODE 64 and use the appropriate instructions and 
macros.

>It seems you can run a program that is rmode64
>With synchx linkx  and attachx

Look at the doc for synchx. As for linkx & attachx, yes, they will load the 
module above the bar. 

>It also seems that for a  rmode64 program register 0 + 1 is the entry point 

R1 should be the parm pointer, R15 should be the entry point, R14 the return 
address. I'm not sure what "register 0 + 1" refers to.

>It also seems from Peter Relson email you can run linkx and attachx rmode64 

Peter said the doc must specifically state RMODE 64 SUPPORTED as a requirement. 
I took a quick look at LINKX & ATTACHX but did not see RMODE 64 so I assume 
they can't be used in an RMODE 64 program. I may have overlooked it.  

>The one thing I’m not sure is how to return from a rmode64 is a br r14 

BR R14 is the standard with AMODE 64. Just ensure your program uses the 
appropriate AMODE 64 instructions (e.g. SYSSTATE.RMODE64=YES and appropriate 
savearea).

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to