简体   繁体   中英

MASM addressing mode syntax

Here are 2 lines that have resulted from a disassembler that generates Microsoft ASM assembly:

mov    dl, loc_0040540c[edx]
jmp    dword ptr [loc_00405450][edx*4]

Can someone explain what do they mean? I work mostly with NASM so a NASM equivalent would be good as well.

In NASM-speak:

mov    dl, [loc_0040540c + edx]
jmp    [loc_00405450 + edx*4]

And those loc_0040540c are probably the respective addresses/constants (eg 0040540cH ).

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