🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #307

Re: Assembly coding guidelines

#307
From: Paul Hanrahan
Date: Mon, 05 Sep 2005 13:55
67 lines
4441 bytes
I think your solution to the state problem is a good one and I've used that
solution myself.  The issue I wrestle with is the quick and dirty
compromises I come up with when expressing an idea in a limited space on an
assembler line.

IBM coding standards for assembler on MVS and VM were a comment on every
line.  Common complaints for those reading source are the meaninglessness of
the comments.

I would like users of IBM code to grasp it and be able to exploit what they
understand so that the path to building good apps on top of mainframe
platforms is quicker.

I think, "It's hard to write so it should be hard to understand," is
humorous but not something I like when I'm trying to unravel a problem or
understand a block of code.

Paul Hanrahan

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]
On Behalf Of Robert A. Rosenberg
Sent: Sunday, September 04, 2005 11:02 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembly coding guidelines


At 14:25 -0400 on 09/04/2005, Paul Hanrahan wrote about Re: Assembly coding
guidelines:

>Continuing to the next line is useful but not something that should be
>done often.

I was just pointing out that continuing the comment on the next card is a
"solution" to the stated "problem" of the lack of space on the line due to
other required data. If your comment needs to be x-characters long, what is
the difference between it taking up one or two lines (the latter due to
there not being enough room on the first line)?

>
>-----Original Message-----
>From: IBM Mainframe Assembler List
>[mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU]
>On Behalf Of Robert A. Rosenberg
>Sent: Saturday, September 03, 2005 11:00 PM
>To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
>Subject: Re: Assembly coding guidelines
>
>
>At 09:39 -0400 on 09/03/2005, Paul Hanrahan wrote about Re: Assembly
>coding
>guidelines:
>
>>What I found the most annoying about coding assembler was the
>>comments. The area for a sequence number and then a code to identify
>>the programmer digs into available space for comments.  Using the
>>comment line for change management identification tied back to a
>>change log at the top of the program in a flower box is a good thing
>>but then with extended opcodes the space on a line is reduced.
>>
>>I like having a programmer id on each line of code for root cause
>>analysis but hate giving up space for line comments.
>
>Throw an "*" in column 72 and you have the next line for more comment
>text. As an alternative, I often throw an "*" into column 1 and
>continue my comment on that line in column 36 (My Start of Comment
>location).
Technical Details
Message-ID: <001901c5b221$6ac530a0$8601a8c0@DGG2YZ51>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!sn-xit-02!sn-xit-10!sn-xit-01!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!sbcglobal.net!p_hanrahan

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,b5f541d74f4633a6
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!sn-xit-02!sn-xit-10!sn-xit-01!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!sbcglobal.net!p_hanrahan
From: Paul Hanrahan <p_hanrahan@sbcglobal.net>
Newsgroups: bit.listserv.asm370
Subject: Re: Assembly coding guidelines
Date: Mon, 5 Sep 2005 09:55:04 -0400
Organization: SAS Inc.
Lines: 67
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <001901c5b221$6ac530a0$8601a8c0@DGG2YZ51>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1125928899 24998 10.19.150.41 (5 Sep 2005 14:01:39 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 5 Sep 2005 14:01:39 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.6626
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Importance: Normal
X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.cc.uga.edu id
                      j85Dt5cm000905
Approved-By: Paul Hanrahan <p_hanrahan@SBCGLOBAL.NET>
In-Reply-To: <p06230900bf416442e778@[192.168.1.11]>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 05 Sep 2005 14:01:36.0719 (UTC)
                       FILETIME=[548E95F0:01C5B222]
X-Mime-Autoconverted: from 8bit to 7bit by mime827
Originator: daemon@mozart.unx.sas.com