MOV instruction
University of Duhok,
Computer Science Dept.
MOV destination,source
16-bit , 16-bit
8-bit , 8-bit
Register
[ Memory ]
Register
[ Memory ]
Immediate
By: Jawaher A. Fadhil Computer Science Dept.
Example#1
MOV AX,5FFh
MOV CX,AX
MOV BL,AH
MOV AL,00
MOV BH,0E
MOV AH,BH
MOV CX,AX
AX= 05 FF
CX= 05 FF
BX= 05XX
AX= 05 00
BX= 0E 05
AX= 0E 00
CX= 0E 00
Department of Computer ScienceBy: Jawaher A. Fadhil Computer Science Dept.
By: Jawaher A. Fadhil Computer Science Dept.
https://www.youtube.com/watch?v=w44iSpLJDgw
By: Jawaher A. Fadhil Computer Science Dept.
By: Jawaher A. Fadhil Computer Science Dept.
Assignment#1
What is the value of DX, BX registers after executing the
following instructions?
MOV DX,2670
MOV BX,92
MOV DL,BH
MOV DL,8A
MOV BX,DX
MOV BH,0C
MOV DL,9
Department of Computer Science
DX BX
Assignment#1
Write an assembly program to swap the content of AX=5F3H
with CX= 1940H registers? using MOV instruction only?
Department of Computer Science
MOV  instruction part1

MOV instruction part1

  • 1.
    MOV instruction University ofDuhok, Computer Science Dept.
  • 2.
    MOV destination,source 16-bit ,16-bit 8-bit , 8-bit Register [ Memory ] Register [ Memory ] Immediate By: Jawaher A. Fadhil Computer Science Dept.
  • 3.
    Example#1 MOV AX,5FFh MOV CX,AX MOVBL,AH MOV AL,00 MOV BH,0E MOV AH,BH MOV CX,AX AX= 05 FF CX= 05 FF BX= 05XX AX= 05 00 BX= 0E 05 AX= 0E 00 CX= 0E 00 Department of Computer ScienceBy: Jawaher A. Fadhil Computer Science Dept.
  • 4.
    By: Jawaher A.Fadhil Computer Science Dept. https://www.youtube.com/watch?v=w44iSpLJDgw
  • 5.
    By: Jawaher A.Fadhil Computer Science Dept.
  • 6.
    By: Jawaher A.Fadhil Computer Science Dept.
  • 7.
    Assignment#1 What is thevalue of DX, BX registers after executing the following instructions? MOV DX,2670 MOV BX,92 MOV DL,BH MOV DL,8A MOV BX,DX MOV BH,0C MOV DL,9 Department of Computer Science DX BX
  • 8.
    Assignment#1 Write an assemblyprogram to swap the content of AX=5F3H with CX= 1940H registers? using MOV instruction only? Department of Computer Science