You are on page 1of 4

Cse 321

Lab execution results

Sharukh
2020bcs0185
Sharukh 2020BCS0185

Question 1
Write an ALP for 8085 MP to generate a square pulse. Display the pulse if it has a period of
500us. Assume the system clock as 320ns.

Code
MVI D,AAH
ROTATE: MOV A,D
RLC
MOV D,A
ANI 01H
OUT PORT1
MVI B,35H
DELAY: DCR B
JNZ DELAY
JMP ROTATE

1
Sharukh 2020BCS0185

Screenshot

Question 2
Write an ALP for 8086 MP to multiply two unsigned hexadecimal numbers. Let the first number
be 10H and the second number resides in base register. Store the result of multiplication in
2000H.

Code
start:
MOV BX,0x02
MOV AX, BX
MOV CX, 0x10
MUL CX
MOV word[0x2000], AX

2
Sharukh 2020BCS0185

Screenshot

You might also like