简体   繁体   中英

What does this line of assembly code do?

I know that this line of code moves somthing into the eax register, but what does dword ptr [edx +15Ch] do ?

mov eax, dword ptr [edx + 15Ch]

does it take the value in edx and add 15C = Q , then load the value in address Q into eax? if so, what does the dword ptr mean in this conetxt?

Yes, that's exactly what it does.

The dword ptr modifier is redundant here because the register is already 32 bits, but it is sometimes necessary to tell the assembler what type of data it should be working on when it can't be directly inferred. For example

push dword ptr [edx + 15Ch]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM