MOV
The instruction can CPU
CPU
transfer words or bytes between or between memory, and the information it transmits can be transferred from register to register, immediately count to register, immediately count to storage unit, from storage unit to register, from register to storage unit, from register or storage unit to CS
outside segment register ( Note that the immediate number cannot be sent directly to the segment register), from the segment register to the Register or storage unit.
But note
(1) MOV
the source operand in the instruction must not be an immediate number and a code segment CS
register;
(2) MOV
The instruction is absolutely not allowed to transfer data directly between two storage units;
(3) MOV
The instruction is absolutely not allowed to transfer data directly between two segment registers;
(4) The MOV
directive does not affect the flag position
例:MOV AX,DATA_SEG MOV DS,AX
Note: The segment register (segment address) must be initialized with an immediate number through registers such as AX
registers.
例: MOV AL,‘E’
Send the immediate number ( E
the code of the character ASC
) to the AL
register.
例: MOV TABLE
The TABLE
offset address (not the content) is sent to the BX
register. OFFSET
This is the property operator, which represents the value (not the content) of the subsequent symbolic address as the operand.
例 MOV AX,Y[BP][SI]
Send the contents of the address as 16d×(SS)十(BP)十(SI)十位移量Y
a memory unit to the AX
register
MOV instruction detailed