I have 7bytes where I need to pick a few bits from each and combine to less bytes, is this possible with the %masking ?
Right now I am using if, but the compiler says im 50bytes over limit :/
The 7 bytes are like this
%01000100
I need to make 2 new bytes with the two ones, bit2 and 6 I think.
I would like to have it in a loop, and can handle the assignment of the variables, and shifting of the positions inside the 2 new bytes, so its just if its possible to take 2 bits from a byte and place somewhere else in a newbyte withoit removeing what is already in that byte.
Right now I am using if, but the compiler says im 50bytes over limit :/
The 7 bytes are like this
%01000100
I need to make 2 new bytes with the two ones, bit2 and 6 I think.
I would like to have it in a loop, and can handle the assignment of the variables, and shifting of the positions inside the 2 new bytes, so its just if its possible to take 2 bits from a byte and place somewhere else in a newbyte withoit removeing what is already in that byte.