1

What does this instruction do? Does it change the value of edx to 0?

lea edx, 0[0+rax*4]
Peter Cordes
  • 328,167
  • 45
  • 605
  • 847
tuz
  • 41
  • 4

1 Answers1

0

No, it doesn't. The lea (load effective address) instruction is used to put a memory address into the destination.

For example, here, you are going to put 0[0+rax*4] in edx.

Syntax:

lea destination, source

This will help you: https://www.aldeid.com/wiki/X86-assembly/Instructions/lea
Also this: What do the brackets mean in x86 asm?

MARSHMALLOW
  • 1,315
  • 2
  • 12
  • 24