Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

DR. B.R.

AMBEDKAR NATIONAL INSTITUTE OF


TECHNOLOGY, JALANDHAR

MICROPROCESSOR AND INTERFACING LAB


LAB ASSIGNMENT 8

SUBMITTED TO:
DR. SATHIYA S

SUBMITTED BY:
▪ PARTH SHINH
18106052
▪ PIYUSH GUPTA
18106053
• PRABHLEEN KAUR
18106054

ICE 3RD Year


Group: G3-C
QUESTION 1:

AIM:
Write a program sequence to perform multiplication using
rotation operation.


PLATFORM
REQUIRED:
SIM8085


ALGORITHM OF THE PROGRAM:
1. Store the number (i.e. X ) on which
operation(multiplication) has to be performed in Register
B
2. Move the value stored in register B to Accumlator.

3. Apply RLC operation, which rotates the binary number in A to


left by 1.

4. Store value of accumulator in address 0000H


5. Terminate the program.
6. We see, that the rotated number is twice the value of X, hence
left rotation by 1 digit gives multiplication by 2.


PROGRAM SEQUENCE IN MNEMONICS:
MVI B, 09H
MOV A,B
RLC
STA 0000H
HLT

FLOWCHART:
START

Store the number to be


multiplied in register B

Make a copy of contents of


B to A

Execute RLC (on contents


of A)

Store contents of A in
Memory 0000H

Terminate
❖ PROGRAM OUTPUT:

❖ Result:
The multiplication of the number on left rotation is stored in the location 0000H.

You might also like