| <<< Endianness: Byte Ordering in Computer Memory | Index | Big and Little Endian >>> |
Step-by step execution of little_endian.asm program in debugger view looks like this:
|
|
The byte sequence of 304002h was reversed when the value was stored in memory.
Note that command switch /base:0x300000 was used to change the base address of the executable image:
LINK /base:0x300000 /debug /subsystem:console /entry:_start /out:little_endian.exe little_endian.obj
| <<< Endianness: Byte Ordering in Computer Memory | Index | Big and Little Endian >>> |