X86-mov
|
In the X86 assembly language, the MOV instruction moves data from Y to X when coded as
- MOV X, Y
Either X or Y can include addressing information.
The arguments for the MOV commands can be either a register, segment register or a memory address. since the command is executed in a single CPU work cycle, not all combinations of arguments are possible. possible combinations:
move the content of the register bx into the register ax
- MOV ax, bx
move the content of the register ax into the memory block with the specified address
- MOV [address], ax
A combination which is not possible, is a move from memory to memory, for example :
- MOV [address1], [address2]
to achieve this, another MOV must be used:
- MOV ax, [address2]
- MOV [address1], ax