The int is stored in 2 memory places. I need to send it via uart, so i need to divide it into two. I do it like this
a = int & 0x00FF;
b = (int & 0xFF00) >> 8;
But inst there anyway I could simply get directly into the mmory and do something like getting directly two 8 bit vars. with out the "math"?