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

  1. Load first number in accumulator.
  2. Move the content of accumulator in register B.
  3. Load the second number in accumulator.
  4. Rotate the accumulator left without carry.
  5. Repeat step 4.
  6. Store the result in memory.
  7. 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.





Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.