×

Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Addition of Two 8-bit Numbers using 8085 Microprocessor

Add two 8-bit numbers: In this tutorial, we will learn how to find the addition of two 8-bit numbers using an 8085 microprocessor? By Akash Kumar Last updated : May 13, 2023

Addition of Two 8-bit Numbers using 8085 Microprocessor

To perform addition of two 8 bits numbers without carries using 8085 microprocessor.

Algorithm

  1. Load the accumulator with the first data.
  2. Move data of accumulator to register B.
  3. Load the second data into the accumulator.
  4. Add the content of register B with the content of accumulator.
  5. Now load the result value in a memory location.

Program

LDA     2050
MOV     B,A
LDA     2051
ADD     B
STA     2052

Observation

INPUT: 
2050:04
2051:02

OUTPUT: 
2052:06

Hence we successfully added two 8 bits numbers.




Comments and Discussions!

Load comments ↻





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