Hi,
das macht man wohl über ein bitweises-AND, also in etwa so:
So erhälst du die 4 MSB in Byte1 und 4 LSB in Byte2. Selbstverständlich kannst du so beliebige Bits rauskopierenCode:Byte1 = Byte & 0xF0; Byte2 = Byte & 0x0F;
Gruß
Chris
Hi,
das macht man wohl über ein bitweises-AND, also in etwa so:
So erhälst du die 4 MSB in Byte1 und 4 LSB in Byte2. Selbstverständlich kannst du so beliebige Bits rauskopierenCode:Byte1 = Byte & 0xF0; Byte2 = Byte & 0x0F;
Gruß
Chris
Lesezeichen