Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Divide Two 8-bit Numbers using 8085 Microprocessor

In this tutorial, we will learn how to divide two 8-bit numbers in 8085 Microprocessor? By Akash Kumar Last updated : May 13, 2023

Division of Two 8-bit Numbers using 8085 Microprocessor

Given two 8-bit numbers, we have to divide them in 8085 Microprocessor.


  1. Load the HL pair registers with address of memory location.
  2. Move the first data to register B.
  3. Move the second data to the accumulator.
  4. Then compare two numbers for carry.
  5. Subtract the content of Register B to the content of accumulator.
  6. Then increment the value of carry.
  7. Then check whether the repeated subtraction is over.
  8. If the repeated subtraction is over then store the value of quotient and remainder in the given memory location.


LXI     H, 3050
MOV     B, M
MVI     D, 00
INX     H
MOV     A, M
*** CMP B
JC **
SUB     B
INR     C
JMP ***
** STA 3052
MOV     A, C
STA     3053




Hence we successfully divided two 8 bits numbers.

Comments and Discussions!

Load comments ↻

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