I have been following the ASMA034E discussion and am interested in learning how 
to do the new-fangled relative branching stuff.
Can someone point me to a reasonably simple example? I learned my Assembler in 
the 80's and have been using that way of coding ever since. I think it is time 
to upgrade my so-called skills.

Regards - Grant


DTCC Internal (Green)

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Peter Relson
Sent: 15 November 2018 12:45
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: ASMA034E

ATTENTION! This email originated outside of DTCC; exercise caution.


A more modern (over 20 years old by now?) would suggest not having a USING for 
your "code" at all, but rather using relative branch with one register set up 
to point to your static data and a USING for that. It is relatively infrequent 
that your static data would exceed 4K, and even if it did you could often use 
long-displacement instructions to access any data that is more than 4K from the 
beginning. In some cases you might be able to take advantage of the "immediate" 
instructions and not even need access to static data.

The IEABRCX macro can help in modules that want to use relative branch, 
particularly if they invoke system macros.
Also be sure to identify the architecture level that macros are allowed to 
assume you are running with, via SYSSTATE ARCHLVL=.

Some macro expansions might need local code register addressability, but that 
is usually easy to provide.

Peter Relson
z/OS Core Technology Design


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN
DTCC DISCLAIMER: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error, please notify us 
immediately and delete the email and any attachments from your system. The 
recipient should check this email and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused by any virus 
transmitted by this email.

----------------------------------------------------------------------
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