Write legal combinations of operands for MOV operations

Subject Microprocessor and Assembly Language
NU Year Set: 6.(b) Marks: 5 Year: 2009
  • The MOV (move) instruction is used to:
  • Transfer data between Registers.
  • Transfer data between registers and memory locations.
  • Move a number directly into a register or memory location.
  •  
  • Syntax:

  MOV destination, source

  • Example:

  MOV AX, WORD1

  MOV AX, BX

  MOV AX, 'A'

                                                     Destination Operand

             General     Segment     Memory

Source operand        register     register      location    Constant  

General register       yes              yes  yes          no

Segment register   yes        no  yes               no

Memory location  yes        yes  no          no

Constant  yes        no  yes          no

  • Illegal: MOV WORD1, WORD2 • Legal: MOV AX, WORD2

                                      MOV WORD1, AX

  • Illegal: MOV DS, CS • Legal: MOV AX, CS

                                       MOV DS, AX

Login to post your comment.