Thanks for the reply, could you elaborate for me. I'm relatively new. Are you referring to the union that is splitting the integer into 4 for writing to the SRAM or making a new union to merge the 4 bytes once read?
Also maybe you help my understanding but I thought if you shifted a variable 24<< then it would take the place of bits 24-32 if put into a 32 bit unsigned integer. I thought they shift into the positions: 1-8 byte0, 9-16 byte1, 17-24 byte2, 24-32 byte3.
Is that not so?