I need to manipulate the bits in a 40 bit number.
Is it correct to assume that if I make an array "bignumber VAR BYTE[5]"
The bits will be stacked together in memory?
Assuming the above is true:
I need to shift bits 7-14 (starting from the right - byte5.0) Left one position,
bits 15-22 left two positions, bits 23-30 left 3 positions, and bits 31-36 left 4 positions.
Then I need to stuff the "empty" spaces with "1" or "0".
Does anyone have any insight on how I might do this?
Bookmarks