How did you get 100 from %00100110?
The routines I posted take an 8-bit number as the input, and return a 16-bit encoded result.
ASCII characters A to F
..................... input............encoded output..........
Encoded A = %01000001 = %01 10 01 01 01 01 01 10
Encoded B = %01000010 = %01 10 01 01 01 01 10 01
Encoded C = %01000011 = %01 10 01 01 01 01 10 10
Encoded D = %01000100 = %01 10 01 01 01 10 01 01
Encoded E = %01000101 = %01 10 01 01 01 10 01 10
Encoded F = %01000110 = %01 10 01 01 01 10 10 01
If I feed in your value %00100110. I get %0101100101101001




Bookmarks