xxxxxxxxxx
LEA (Load Effective Address):
num db 10
mov eax, 0
lea eax, [num + 2] ; Load effective address of (num + 2) into eax ; eax now holds the address of num ;plus 2
same explain again in different sentence
;this mean if num location is 0x2 , lea eax, [num + 2] here eax holds the value 0x4
If the address of num is 0x2, this means num is located at memory address 0x2.
The instruction lea eax, [num + 2] computes the effective address by taking the address of num and adding 2 to it.