8 character labels -- There are a lot of labels in IBM macros that are longer than 8 characters. For myself, I like longer labels. I find it easier to read and
understand.

Well, obviously, it goes without saying that there's not much you can do
about other programmers' DSECTs, etc.  Unfortuately, once you opt for
longer labels, there's an increased likelihood that instructions will have to
be continued.  Readability?  I find with good planning, eight character
names can still be quite descriptive.  Having said that, there are some
classic non-descriptive names.  For example, within IHAWQE there are
about one thousand labels that all seem to be anagrams of each other.  ;-)

Register equates -- I find a lot less value in them now that the assembler will
tell you about all the places where a register was used, regardless of the
equates.

Agreed, and I'm all for using the assembly listing to its fullest.  However,
I think it comes back to readability. After using register equates for forty
years, instructions just don't look right without them.

And, by the way, I never stopped using the comma between index and
base registers, so I never had to restart when AR-mode came along.
Good practice never goes out of style.


From: Tom Marchant <[EMAIL PROTECTED]>
Reply-To: IBM Mainframe Discussion List <[email protected]>
To: [email protected]
Subject: Re: Calling a AMODE 31 program from AMODE 64
Date: Thu, 23 Aug 2007 12:49:31 -0500

On Thu, 23 Aug 2007 13:18:13 -0400, J R wrote:

>Call me old fashioned but I still write all my code in upper case,
>still limit label names to eight characters, and still use register equates.

Upper case -- ok. Doesn't bother me either way. You have to be real careful
about using lower case in macro operands, though.

8 character labels -- There are a lot of labels in IBM macros that are longer than 8 characters. For myself, I like longer labels. I find it easier to read and
understand.

Register equates -- I find a lot less value in them now that the assembler will
tell you about all the places where a register was used, regardless of the
equates.

--
Tom Marchant

_________________________________________________________________
A new home for Mom, no cleanup required. All starts here. http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to