开发者

Use of Ptr operator?

开发者 https://www.devze.com 2023-01-25 23:36 出处:网络
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.)

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号