What does this instruction do? Does it change the value of edx to 0?
lea edx, 0[0+rax*4]
What does this instruction do? Does it change the value of edx to 0?
lea edx, 0[0+rax*4]
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?