Without testing, I believe ICM will be much slower than LOAD

HTH

<Snip>
or 
            ICM   Rx,B'1111',CURRENT
            JZ     SKIP
            A      Rx,SUM
            ST    Rx,SUM
SKIP    DS    0H
 
 
In a message dated 2/16/2014 8:51:07 A.M. Atlantic Standard Time, 
[email protected] writes:

Would  this be even faster?
CLC     CURRENT,=F'0'
JZ     SKIP
L     Rx,CURRENT
A     Rx,SUM
ST     Rx,SUM
SKIP    DS     0H


On Sun, Feb 16, 2014 at 3:10 AM, Binyamin  Dissen <[email protected]> 
wrote:
> Say I have two  words,
>
>               CURRENT   DS     F
>         SUM      DS   F
>
>  I want to add CURRENT to SUM, but most of the time CURRENT will be  zero.
> CURRENT and SUM are not adjacent (different data  lines)
>
> Which is best
>
>       L      Rx,CURRENT
>                 A     Rx,SUM
>         ST     Rx,SUM
>
>
> or
>
>         L      Rx,CURRENT
>                 LTR   Rx,Rx
>           JZ    SKIP
>     A      Rx,SUM
>                   ST    Rx,SUM
>        SKIP   DS    0H
>
</snip>

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

Reply via email to