Is there an easier / more efficient way to create an 8bit MSB and LSB pair from a 16bit variable than bit shifting and storing?
Thanks
~Tim
Printable View
Is there an easier / more efficient way to create an 8bit MSB and LSB pair from a 16bit variable than bit shifting and storing?
Thanks
~Tim
That is the easy way.
And most modern processors achieve it in a single clock tick.