PDA

View Full Version : assembly question


paraidy
11-08-2005, 15:49
Hi, i have 2 questions about assembly, i hope that someone can explain them to me


1- what are the differences between the instructions "Mov" and "Lea"?
2- what are the differences between "Eax" "Ebx" "Ecx" "Edx" (i know that they are accumulator, base, counter and data, but what are their function?)
thanx all :)

TippeX
11-08-2005, 22:00
Mov dest,src

Copies byte/word/dword/qword from the source operand to the destination operand.

Lea dest,src
Transfers offset address of "src" to the destination register.

Lea=Load Effective Address

eax,ebx,ecx,edx all 'general purpose' registers

ecx also useable in loops as the loop count

paraidy
12-08-2005, 09:49
Oh thx now it's is perfect :)