??? 04/01/05 19:12 Read: times |
#90830 - not as simple, but less table Responding to: ???'s previous message |
How about this for an idea. Use a 4 bit lookup table to reverse a nybble. Lookup eack nybble, and then SWAP the nybbles. Is it this simple or am I missing something?
Yes, that is (probably) faster than pure code, but by no means as fast as the full byte lookup. Flash today is a throwaway commodity and if you do not have 256 bytes to spare, you probably should not do something that require reversals (cheap toys do not). Erik |