Home »
Embedded Systems
Multiplication of two 8 bits numbers using logical instructions
Here, we are going to learn how to find multiplication of two 8 bits numbers using logical instructions on 8085 microprocessor?
Submitted by Akash Kumar, on November 03, 2018
Problem statement:
To perform multiplication operation between two 8 bits numbers using logical instructions on 8085 microprocessor.
Algorithm:
- Load first number in accumulator.
- Move the content of accumulator in register B.
- Load the second number in accumulator.
- Rotate the accumulator left without carry.
- Repeat step 4.
- Store the result in memory.
- HLT.
Program:
LDA 2050
MOV B, A
LDA 2051
RLC
RLC
STA 3050
HLT
Observation:
INPUT:
2050:05
2051:04
OUTPUT:
3050:14
Hence we successfully multiplied two 8 bits numbers using logical instruction.
TOP Interview Coding Problems/Challenges