2 ms·
With LE, you could either: - list memory right-to-left so the lowest memory address is on the right and the highest is on the left (i guess i prefer this solut
by bshanks 4y ago
With LE, you could either:
- list memory right-to-left so the lowest memory address is on the right and the highest is on the left (i guess i prefer this solution because it's compatible with the convention of the least-significant-bit being the rightmost bit, which is enshrined in the name of "right shift", and with the convention of the least-significant-bit being bit 0, which makes sense in formulas like "value = sum_digitindex digit[digitindex]*radix^digitindex")
or you could
- write hexadecimal values with the most-significant-digit on the right, so the byte 2 followed by the byte 10 (in decimal notation) would be written 20 A0 instead of 02 0A.
I don't know if popular hex dump programs have switches for either of those, though?
- nybble41 4y agoApplying the first solution consistently causes text strings to appear like "dlrow olleH", which IMHO is not very practical. In general we expect array elements, including byte and character arrays, to be listed in the locale's normal writing direction, which would generally be in ascending order by index from left to right. The second solution is more internally consistent, but breaks with the expected big-endian writing direction for Hindu-Arabic numerals in English text. I can't say I've encountered any hex editors which support either option.
- bshanks 4y agoHmm good point about text strings, thanks