I'm hoping to take a byte and convert it to its equivalent 8 digit 1s and 0s value as in
0x5 to 0101
Seems like a simple question but I haven't been able to find an answer anywhere
I'm trying to make a tool to handle processor op-codes which are in 3 or 5 bit chunks.
For example, I need to read:
0x8683
convert it to:
1000011010000011
Then I can split it to process the op-code
100...001...10100...00011
..4 . &..1 . .. .r20 . . . .r3
Thanks!