Lab Report

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

EEE342 - Microprocessor Systems and Interfacing

Lab Report # 1
Introduction to Microprocessor & Microcontroller

Name Abdul Ahad Khurshid Reg # FA17-BEE-188


Class & Section BEE-5D Lab Instructor Engr. M. Zubair Khaliq
Performed Date 03 09 2017 Submitted Date 10 09 2019

Task 1: Write the following code in emulator and examine the contents of registers by single stepping
MOV AL, 57
MOV DH, 69
MOV DL, 72
MOV BX, DX
MOV BH, AL
MOV BL, 9FH
MOV AH, 20
ADD AX, DX
ADD CX, BX
ADD AX, 1F35H

Solution:

1 | Page Department of Electrical and Computer Engineering | CUI Wah


EEE342 - Microprocessor Systems and Interfacing

2 | Page Department of Electrical and Computer Engineering | CUI Wah


EEE342 - Microprocessor Systems and Interfacing

3 | Page Department of Electrical and Computer Engineering | CUI Wah


EEE342 - Microprocessor Systems and Interfacing

Task 02:Write a program to subtract the content of register DX from the content of register AX, then
add the result to the content of CX. Set the registers to 4, 0A and 1F respectively.

Code:
mov dx,4
mov ax,0Ah
mov cx,1Fh
sub ax,dx
add cx,ax
Solution:

4 | Page Department of Electrical and Computer Engineering | CUI Wah


EEE342 - Microprocessor Systems and Interfacing

5 | Page Department of Electrical and Computer Engineering | CUI Wah


EEE342 - Microprocessor Systems and Interfacing

6 | Page Department of Electrical and Computer Engineering | CUI Wah

You might also like