Vladimir Gazbarov
Vladimir Gazbarov

Reputation: 860

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.

Upvotes: 1

Views: 387

Answers (1)

Alexey Frunze
Alexey Frunze

Reputation: 62048

In NASM-speak:

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

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

Upvotes: 3

Related Questions