3.2 Moving Values From Register To Register

Moving a value from one register to another is done by placing the register names as operands to the mov instruction:

mov eax,ebx ; moves content of ebx into eax, i.e eax=ebx

Following is an example of two assembly instructions. The first instruction moves the constant value 10 into the ebx register. The second instruction moves the value of ebx (in other words, 10) into the eax register; as a result, the eax register will contain the value 10:

mov ebx,10  ; moves 10 into ebx, ebx = 10
mov eax,ebx ; moves value in ebx into eax, eax = ebx or eax = 10
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.195.110