I get confused about this - please can any one tell me how it works ?
array db 10,20,30,40
mov eax,DWORD PTR array ;eax should contains 40302010 (in Little endian.)
but this is not working开发者_运维知识库 in my computer/system. Please can anyone help me - why is it like that ? In my program it contains some garbage value. Please help me.
Your eax contains $281E140A. The hexadecimal $28, $1E, $14 and $0A corresponds to your declared elements. for it to say $40302010, your array needs to be:
array db $10,$20,$30,$40
精彩评论