Page 2 of 2

Re: An interesting find with stats.

Posted: Sun Mar 01, 2009 10:39 pm
by IIMarckus(imported)
Bits are read from right to left because that's the way they're written via ASM commands. Bit 0 is the rightmost bit, bit 7 is the leftmost bit. This is a convention because of how digit‐based number representations work: the binary number %01101010 is equal to
0 × 27 + 1 × 26 + 1 × 25 + 0 × 24 + 1 × 23 + 0 × 22 + 1 × 21 + 0 × 20

It's the same way with decimal numbers the farthest right column is the ones place, to the left of that is the tens place, and so on.