An interesting find with stats.

Discuss anything related to hacking ROMs of the Telefang games here.
IIMarckus(imported)
Posts: 27
Joined: Tue Dec 25, 2007 4:30 pm

Re: An interesting find with stats.

Post 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.
Post Reply