combined bytes wont shift.

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 you left-shift a 32 bit variable 24 bits, then the least significant eight bits of the original variable will occupy bits 24 to 31.

But that's not what you're doing.