??? 04/01/05 14:52 Read: times Msg Score: +1 +1 Good Question |
#90813 - Reversing Algorithm |
I was wondering if anyone knew an efficient and space saving algorithm in 8051 assembler to reverse the direction of a byte. That is, to make the msb become the lsb and vice versa, the second msb become the second lsb and vice versa, etc.
So, 11100101 -> 10100111 I've been trying to think of a solution to this all night but haven't come up with anything compact. Anyone? |