Lab Report
Lab Report
Lab Report # 1
Introduction to Microprocessor & Microcontroller
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:
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: