I hadn't ever viewed the relative instructions as completely replacing addressability. Interesting.
I do suspect that this is never going to be "fixed": it's a lot of work, and it essentially ain't broken, so... -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Seymour J Metz Sent: Monday, August 26, 2024 2:16 PM To: [email protected] Subject: Re: Relative Instructions not generated by some IBM macros, e.g. STORAGE and ATTACHX ASMMREL? ARCHLVL=2? How old are the boxen you support? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Richard Zierdt <[email protected]> Sent: Monday, August 26, 2024 11:50 AM To: [email protected] Subject: Relative Instructions not generated by some IBM macros, e.g. STORAGE and ATTACHX Writing code using relative addressing, as much as reasonably possible. Problem: some IBM macros, e.g., ATTACH(X) and STORAGE, generate L and LA(E) instructions instead of, e.g., LRL and LA(E)Y. STORAGE OBTAIN, Length=(0), Loc=(31,31) generates this instruction L 15,=AL1(B'00000000',(0*16),(0),B'01110110') requiring a base register instead of, e.g., LRL 15,=AL1(B'00000000',(0*16),(0),B'01110110') (Load Relative Long) which does not. ATTACHX EP=SUBTASK generates LAE 15,IHB0098 SET UP LIST ADDRESS instead of LAEY 15,IHB0098 SET UP LIST ADDRESS Temporary base-displacement addressing can be established prior to issuing these macros, but that defeats the purpose of relative addressing. These macros are included: SYSSTATE ARCHLVL=2 Support for relative addressing IEABRCX DEFINE IEABRCX ENABLE Change base-displacement to relative but apply to branch instructions, not load. Any perspectives would be helpful, either with an alternative solution, or that, like taxes, you live with it. Thanks – Richard Zierdt Confidentiality Warning/Avertissement de confidentialité: This message is intended only for the named recipients. This message may contain information that is privileged or confidential. If you are not the named recipient, its employee or its agent, please notify us immediately and permanently destroy this message and any copies you may have. Ce message est destiné uniquement aux destinataires dûment nommés. Il peut contenir de l'information privilégiée ou confidentielle. Si vous n'êtes pas le destinataire dûment nommé, son employé ou son mandataire, veuillez nous aviser sans tarder et supprimer ce message ainsi que toute copie qui peut en avoir été faite. ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
