Home »
Embedded Systems
Multiply of Two 8-bit Numbers using Logical Instructions
In this tutorial, we will learn how to find the multiplication of two 8-bit numbers using logical instructions in 8085 Microprocessor.
By Akash Kumar Last updated : May 13, 2023
Multiply of Two 8-bit Numbers using Logical Instructions in 8085 Microprocessor
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-bit numbers using logical instruction.