If X= FF B0 FC FE
So how can I split into?
A=FC FE
B= B0
C= FF
how to split a variable data??
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: how to split a variable data??
A = X & 0xFFFF
B = ( X >> 16 ) & 0xFF
C = ( X >> 24 ) & 0xFF
B = ( X >> 16 ) & 0xFF
C = ( X >> 24 ) & 0xFF
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis