I have a 32 bit long variable, CurrentPosition, that I want to split up into 4, 8bit characters. How would I do that most efficiently in C? I am working with an 8bit MCU, 80
CP1 = (unsigned char)(CurrentPosition & 0xFF); CurrentPosition >>= 8; CP2 = (unsigned char)(CurrentPosition & 0xFF); ...