I know I have seen it in a lot of places, but now cannot find a single one. What I need to do is to take a word value and extract say first 8 bits. How do I do that??? :cry:
Remove the upper 8-bits using AND operation.
Like
YourValue AND 0x00FF = Only lower 8-bits
(YourValue AND 0xFF00) >> 8 (Rotate right 8 times) = Only upper 8-bits