What is the difference between an 8-bit number in little-endian and an 8-bit number in big-endian on Intel 64 systems?
2 Answers
There is no difference. A sequence of only one byte looks the same when read from left to right or right to left.
1 Comment
seinol
Thanks for the answer. On the story behind this question: A professor at my university asked me what would happen if I posted this trick question in Stackoverflow. The result is accordingly very good and totally correct.
I would like to mention that loading a single byte into a larger register, might apply the endianess to the register:
With little endianess the byte would maintain its numeric value. With big endianess in a 4 byte register it would be shifted << 24.
Though I know of no such instruction, being not familiar with intel.