Tim Wade wrote:
Hi I was using the msp430-readelf program to check a few things and
noticed that if you do a --hex-dump=? Then you get the expected hex dump
but the hex values on the left seem to be back to front.... For example:
Hex dump of section '.text':
0x00001100 403d0200 403e5256 403f0120 5a8040b2 ....@.z ....@vr>@..=@
0x00001110 2bfb9d0e 531e0000 4ffe2405 9e0d024c L....$.O...S...+
The string bit on the right seems to be correct but if you
Look carefully at the hex values you will notice that they are
Flipped left to right ie in our case the hex value of 0x40 should
Be at address 0x110f NOT 0x1100
This wouldn't appear to be correct?
thats fine. look up the difference between "little endian" and "big
endian" byte order. the MSP430 is little endian.
a hex dump with byte swapped 32bit ints doesnt make much sense for the
MSP430, but if you switch the output format to 16bit ints, its the same
as the processor sees when accessing 16bit values. i'm sure you can also
switch to a eight bit hex dump, which would show the bytes in the same
order as the ascii dump on the right.
chris