On 2/18/2014 12:11 AM, Skip Robinson wrote:
L Rn,COUNTER    Fetch the counter
LA Rn,1(,Rn)    Increment the count
ST Rn,COUNTER   Update the counter

I realize hindsight is wonderful, but I can't keep wondering why you didn't use something like:

        LA Rn,1
        AL Rn,COUNTER
        ST Rn,COUNTER

which would have given you a 32-bit maximum total? And even using a plain A would have given you 31 bits.

But then I look at my early code and cringe <g>

Gerhard Postpischil
Bradford, Vermont

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

Reply via email to