I'm trying to learn Assembly a bit (and I know I really should get a good non-electronic book on it), and I was wondering about the following.
Consider an instruction like:
mov eax, [ebp + 8]
How does the Assembler translate ebp+8 into the MOV instruction (basically, how does it turn it into machine code)?
The reason I am wondering is because it cannot do:
mov eax, ebp + 8
You would need to use
lea eax, [ebp + 8]
I guess I'm a bit confused about why the one thing can be done and the other can't.
The way I see it... Well, it's all pretty blurry