The MOV instruction is for moving a byte or word within the CPU or between the CPU and memory. Depending on the addressing modes it can transfer information from a:

Register to a register.
Immediate operand to a register.
Immediate operand to a memory location.
Memory location to a register.
Register to a memory location.
Register/memory location to a segment register (except CS).
Segment register to a register/memory location.

None of the flags are changed by the execution of a move instruction. Several examples of MOV instructions are given in Fig. 3-7.

Figure 3-7 Examples of the MOV instruction.

MOV     DS,AX          ;MOVE (AX) TO DS

MOV     AL,'E'         ;MOVE ASCII 'E' TO AL

MOV     [BX],DX        ;MOVE (DX) INTO LOCATION INDICATED BY (BX)

MOV     AX,Y[BP][SI]   ;MOVE INTO AX THE CONTENTS OF THE
;LOCATION FOUND BY ADDING (BP), (SI), AND
;THE OFFSET OF Y

*(DS) x 1610 is added to the EA.
1(SS) x 1610 is added to the EA.

Table of Contents | Next page | Previous page

This is page 25.