Re: Bit twiddling
Chris Croughton wrote:
(snip)
(I wrote)
IBM machines derived from S/360 consistently number them with the
MSB as zero. The terminology gets a little confusing now that the
architecture has been extended to 64 bits. The old instructions now
operate on bits 32-63 of the general registers.
That's a good reason for numbering with 0 as LSB!
(snip)
Well, MSB bit 0 is more consistent with big endian byte order.
Some people don't believe that there needs to be such consistency
on machines that can't address bytes, but I disagree.
-- glen
.