Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Minimum of Two 8-bit Numbers in 8085 Microprocessor

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

Minimum of Two 8-bit Numbers in 8085 Microprocessor

Given two 8-bit numbers, we have to find the minimum number among them in 8085 Microprocessor.


  1. Load the accumulator with the first data.
  2. Move the content of accumulator to register B.
  3. Load the accumulator with the second data.
  4. Compare the content of accumulator with the content of register B.
  5. If carry flag is set then jump to the step 7.
  6. Copy the content to accumulator.
  7. Now load the result value in memory location from accumulator.


LDA     2050
MOV     B, A
LDA     2051
JC **
MOV     A, B
** STA 2052




Hence, we successfully find the minimum among two 8 bits numbers.

Comments and Discussions!

Load comments ↻

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