Re: Is it catachrestial as 'Effective Addresses' in NASM documentation?



Julienne Walker,
thank you for the reply.
I formerly meant,
the square-brackets-ed expression wasn't an effective address,
actually,
the thing in the square brackets was an effective address (expression),
as you said.

But, it is right to say '[ebx+esi*4]'(see below) is an effective
address:
mov ebx,mem
mov esi,2
lea edx [ebx+esi*4]

however, it is wrong to say '[mem]'(see below) is an effective address,
just the mem is:
mem dd 1,2,3,4,5
mov eax,[mem]

Is this right?
regards

.



Relevant Pages