> >LA R15,1
> >A R15,COUNTER
> >ST R15,COUNTER
>
> If you're that concerned about speed:
>
> LA R11,1
> LOOP GET foo
> logic to determine type
> L Rl,COUNTER
> AR R1,R11
> ST R1,COUNTER
> B LOOP
And on newer machines (with the general-instructions-extension) you can simply
do:
ASI COUNTER,1
I assume it is faster than the sequence of three instructions but have not
verified that.
Fred!
----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended
recipient. If you are not the intended recipient , don't use or disclose it in
anyway. Please let the sender know and delete the message immediately.
------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN