AnotherSami
New Member
- Joined
- Aug 1, 2022
- Messages
- 1
- Office Version
- 2019
- Platform
- Windows
Hello all,
I am trying to convert a single hexadecimal number into its 4 constituent binary bits in 4 different columns while preserving the leading zeros. I have seen multiple answers on this and other forums, but non preserve the leading zeros.
below is an example of what I am trying to do. If I have the 0x1 i want to return 0001 in 4 different columns. Same with 0x4 returning 0100 ... and so on.
Thanks in advance!
I am trying to convert a single hexadecimal number into its 4 constituent binary bits in 4 different columns while preserving the leading zeros. I have seen multiple answers on this and other forums, but non preserve the leading zeros.
below is an example of what I am trying to do. If I have the 0x1 i want to return 0001 in 4 different columns. Same with 0x4 returning 0100 ... and so on.
lmk04208 Registers.txt | |||||||
---|---|---|---|---|---|---|---|
N | O | P | Q | R | |||
33 | hex | B3 | B2 | B1 | B0 | ||
34 | 1 | 0 | 0 | 0 | 1 | ||
35 | 4 | 0 | 1 | 0 | 0 | ||
36 | 6 | 0 | 1 | 1 | 0 | ||
37 | F | 1 | 1 | 1 | 1 | ||
lmk04208 Registers |
Thanks in advance!