Don Higgins wrote:
Steve - I don't remember seeing I' as opcode in the current z/Arch POP. <G>
Tony, all - The idea is to code a routine that will process a string of
bytes at some address for a given length and calculate the total bits
in the string as I assume the new instruction coming ON Z196 will do.
I coded and tested a version yesterday that has a 4 instruction BXLE loop.
But I'm curious to see if there are faster versions perhaps with some
minimum length and trailer byte restrictions.
Don Higgins
[email protected]
Don,
My point was: do you mean count the number of bits with a
value of '1', or the number of bits in a string of bytes?
The number of bits in a string of bytes is 8 bits * length
of the string, so I didn't see the reason for the problem.
--
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
* To get a good Return on your Investment, first make an investment!
+ Training your people is an excellent investment