Home »
Embedded Systems
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
- Load the accumulator with the first data.
- Move data of accumulator to register B.
- Load the second data into the accumulator.
- Add the content of register B with the content of accumulator.
- 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.