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
<bdis...@dissensoftware.com> 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
>
> --
> Binyamin Dissen <bdis...@dissensoftware.com>
> http://www.dissensoftware.com
>
> Director, Dissen Software, Bar & Grill - Israel
>
>
> Should you use the mailblocks package and expect a response from me,
> you should preauthorize the dissensoftware.com domain.
>
> I very rarely bother responding to challenge/response systems,
> especially those from irresponsible companies.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to