Home »
Embedded Systems
Addition of Two 16-bit Numbers in 8085 Microprocessor
In this tutorial, we will learn how to find the addition of two 16-bit numbers in 8085 Microprocessor using 16-bit operation?
By Akash Kumar Last updated : May 13, 2023
Addition of Two 16-bit Numbers in 8085 Microprocessor using 16-bit Operation
Given two 16-bit numbers, we have to find the addition of two 16-bit numbers in 8085 Microprocessor using 16-bit operation.
Algorithm
- Load both the lower bit and higher bit of first number at once.
- Copy the content HL pair to DE pair register.
- Now the load the lower and higher bit of second number in HL pair register.
- ADD both the register pair content using DAD operation.
- Now move the result at memory location.
Program
LHLD 2050
XCHG
LHLD 2052
DAD D
SHLD 2054
HLT
Observation
INPUT:
2050:11
2051:11
2052:22
2053:22
OUTPUT:
2054:33
2055:33