BYTE b = 0x12;
WORD w = 0x1234;
DWORD dw = 0x12345678;
char str[] = "abcde";
int main(int argc, char *argv[])
{
byte lb = b;
WORD lw = w;
DWORD ldw = dw;
char *lstr = str;
return 0;
}
This is the exe file code I wrote. Put this exe file in ollydbg and find a adress where the lb saved. I think I find a right adress but The order is not as expected
In a dump window, I expected below because it is little endian.
12 00 00 00 | 34 12 00 00 | 78 56 34 12 | 61 62 63 64
But the real is different with what I expected. (Below)
12 00 00 00 | 78 56 34 12 | 34 12 00 00 | 61 62 63 64
Why the lw and ldw are switched?