FileForums

FileForums (https://fileforums.com/index.php)
-   Game Coders (https://fileforums.com/forumdisplay.php?f=36)
-   -   assembly question (https://fileforums.com/showthread.php?t=71651)

paraidy 11-08-2005 14:49

assembly question
 
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 21: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 08:49

Oh thx now it's is perfect :)


All times are GMT -7. The time now is 20:19.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com