Wouldn't 6 (six) be better in  R&? Five (5) seems pretty small.    <g>

Michael

At 11:48 AM 6/16/2021, Savor, Thomas wrote:
 ==>        LA    R7,5              Put 5 in register 7

It depends on the intended target audience. Now I and you know that a 5 is put in Register 7, but many shops have only a couple Assembler Programmers....but many more Cobol programmers. Telling "them" that a 5 is put in Register 7 can be helpful to solving a problem or learning what a program does.

Way too many Cobol programmers that I run into are scared of looking at Assembler...like just looking at it or trying to learn it is going to give you Ebola...so even very basic instructions can be helpful...especially if Instruction says LA 7,5 then it really helps "them".

Thanks,

Tom




-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Seymour J Metz
Sent: Wednesday, June 16, 2021 11:58 AM
To: [email protected]
Subject: Re: EXTERNAL: Coding for the future

Long ago in a galaxy far away, they handed each of us a stack of manuals and told use that we were all enrolled in a 7070 class and had to read all of the manuals before the class started. It turned out that some of the students were answering questions that stumped the instructor, and that if you read the manuals you didn't need the course.

The worst are the ones that score based on the quantity of comments instead of their quality. That guaranties cluttered and unhelpful comments. People will behave in such a fashion as to optimize how their organization ranks them; if teir grades or performance reviews depend on doing something sub-optimal, then that's what they'll do. Measure the things that actually matter.

I generally frown on marking students down on stylistic issues like labels on separate lines, but I will mark down for

         LA    R7,5              Put 5 in register 7

Don't tell me what LA does, tell me why you're putting that value in that register. If there is nothing useful to say in the comment, then omit it.


--
Shmuel (Seymour J.) Metz
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmason.gmu.edu%2F~smetz3&amp;data=04%7C01%7Cthomas.savor%40fisglobal.com%7Cbe99c6f1bde54085afe408d930df9961%7Ce3ff91d834c84b15a0b418910a6ac575%7C0%7C0%7C637594559179362403%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=kaKOh28RkIFxgof3dWR3QMgfWMAyZeQ8ijJ7XLqXpXE%3D&amp;reserved=0

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of Phil Smith III [[email protected]]
Sent: Wednesday, June 16, 2021 11:17 AM
To: [email protected]
Subject: Re: EXTERNAL: Coding for the future

Crawford, Robert C. wrote, in part:

>Oh, and I used to this:

>LOOP      MVC   HERE,THERE



>And now do this:

>LOOP      DS       0H

>                MVC   HERE,THERE



Yes, I was taught that early. Then I took a Commodore SuperPet assembler class (after writing 370 assembler for several years). That assembler had no

       DS  0H
but it did have
       EQU *
So I used that-and was marked down for it. At that point, I stopped taking the class seriously.


----------------------------------------------------------------------
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 The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

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

Reply via email to