FWIW, I don't know for sure if using the base register as an index register 
instead has any CPU penalty, but I got so used to coding it "the right way" so 
long ago it's my default behavior.  If I'm not actually using an index 
register, I always code the comma to indicate it is unused.

Peter

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of Paul Gilmartin
Sent: Thursday, April 20, 2017 6:56 PM
To: [email protected]
Subject: Re: CONVTOD Help

On 2017-04-20, at 14:14, Charles Mills wrote:

> Is this routine run millions of times? Is performance important? If so
> 
>         LA    R4,THATCLOK  Address save area
>         LG    GR7,0(R4)    Load address into 64 bit register
> 
> is doing things the hard way. Why not just LG GR7,THATCLOK? Same for E1970, 
> MILL16 and THISCLOK.
>  
I was wondering about that, also.  I surmised his mother was traumatized during 
gestation by a CDC 6600.

> If you are going to do LG GR7,0(R4) then 0(,R4) is better.
>  
Is that still true?  Performance?  Is there an AGI (whatever) on R0?


> -----Original Message-----
> From: Ward, Mike S
> Sent: 20 April 2017 21:21
>     ...
> Thanks for the help everyone. I used a combination of Tony's, Peter's, and 
> Aldo's routines to do my routine. It also led me to do further study of these 
> instructions in the poop.
> I believe this is working.
>  
You might test it against the TOD examples in the PoOp.
>     ...
> R0       EQU   0,,,,GR32
>     ...
> GRF      EQU   15,,,,GR64
>  
I shudder to think.  Isn't there a library macro for that stuff?  Used to be 
YREGS.  I shudder especially that every programmer might equate idiosyncratic 
symbols.

-- gil

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.

Reply via email to