Discuss the use of the MOV command. Be sure to specify all the limitations of

  • Thread starter Thread starter mikeartwebb
  • Start date Start date
The MOV instruction cannot:

* set the value of the CS and IP registers.
* copy value of one segment register to another segment register (should copy to general register first).
* copy immediate value to segment register (should copy to general register first).

Example:

ORG 100h
MOV AX, 0B800h ; set AX = B800h (VGA memory).
MOV DS, AX ; copy value of AX to DS.
MOV CL, 'A' ; CL = 41h (ASCII code).
MOV CH, 01011111b ; CL = color attribute.
MOV BX, 15Eh ; BX = position on screen.
MOV [BX], CX ; w.[0B800h:015Eh] = CX.
RET ; returns to operating system.
 
it is used to move the data from the right specified one to left specified one ...
mov a b
value at a is over written by b's value
 
Back
Top