> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]]
> On Behalf Of Kirk Talman
> Sent: Wednesday, November 28, 2012 2:26 PM
> To: [email protected]
> Subject: Re: Usefullness (or not) of STOC/LOC instructions?
> 
> might a lurker ask questions?
> 
> if one rearranges the code at bottom as this, is the load of R2
> "cheaper"
> because it can be done in parallel w/the LT?  is it worth doing if the
> JZ is taken?
> 
> is 0(,R1) preferred to 0(R1) because of cost or esthetics?

I guess, in my case, it is a combination of esthetics and being concerned about 
possible AR mode considerations. In AR mode:

        L       R2,0(,R1)
and
        L       R2,0(R1)

will likely result in greatly different values being loaded into R2 if the 
contents of AR1 <> primary address space. 

> 
>     LT   R1,POINTER
>     L   R2,INTVAL
>     JZ   AROUND
>     ST   R2,0(,R1)
>  AROUND DS    0H
> 
> > From: "McKown, John" <[email protected]>
> 
> >    L   R2,INTVAL
> >    LT   R1,POINTER
> >       STOC   R2,0(,R1),NZ
> >
> > instead of:
> >
> >    LT   R1,POINTER
> >    JZ   AROUND
> >    L   R2,INTVAL
> >    ST   R2,0(,R1)
> > AROUND DS    0H
> >
> > for the C construct:
> >
> >    if (POINTER != NULL) *POINTER=INTVAL;

-- 
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to