Endian Swap - Big Endian System


8-Byte Swap from little to big endian:

Little Endian:
05 d2 45 2c

Big Endian:
2c 45 d2 05

The big endian system will read the first byte of 2b, then 45, then d2 & 05.
How about the bit order? Say for 2b (which is the first byte for the big endian). Which bit position it reads first? The "1" in the right or "0" in the left?
0010 1011

Now for the second, third, and the fourth byte, it will start in the bit position in a byte. Right?
MSB on the left.
Topic archived. No new replies allowed.