in reply to Re^3: Extracting Bit Fields (Again)
in thread Extracting Bit Fields (Again)
Thank you so much for the quick response. I was trying to understand the code output.
But here is what I find: Input is : 123456789 (decimal) = 0x075BCD15 (hex, little endian) = 0000_0111_0101_1011_1100_1101_0001_0101 (binary)
So, if we use the template 'x2 a2 a3 a7 a15', we should have 00 for x2 00 for a2 011 for a3 1010110 for a7 111100110100010 for a15 The output in hex should be 0 0 3 56 79A2 Is this right? I seem to be missing something here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Extracting Bit Fields (Again)
by BrowserUk (Patriarch) on Jan 02, 2012 at 07:10 UTC | |
by oyster2011 (Initiate) on Jan 02, 2012 at 08:09 UTC |