# Addition of three 16 bits numbers | 8085 Microprocessor

Here, we are going to learn how to **find addition of three 16 bits numbers on 8085 microprocessor**?

Submitted by Akash Kumar, on November 05, 2018

**Problem statement:**

To perform addition operation between three 16 bit numbers that is stored on registers using 8085 Microprocessor.

**Assumption:**

- Numbers are already stored on registers.
- While choosing the numbers we have to keep in mind that the sum of these numbers should not be greater than FFFF.

**Algorithm:**

- Add the content stored at HL pair register with the content of DE pair register and result will be stored at HL pair register.
- Now move the content of register B to register D and content of register C to register E.
- Now perform the step 1 again.
- The result will be stored at HL pair register.

**Program:**

DAD D MOV E, C MOV D, B DAD D HLT

**Observation:**

INPUT: B:04 C:02 D:02 E:02 H:03 L:04 OUTPUT: H:09 L:08

Hence we successfully **added three 16 bits numbers that are stored on registers**.

TOP Interview Coding Problems/Challenges

- Run-length encoding (find/print frequency of letters in a string)
- Sort an array of 0's, 1's and 2's in linear time complexity
- Checking Anagrams (check whether two string is anagrams or not)
- Relative sorting algorithm
- Finding subarray with given sum
- Find the level in a binary tree with given sum K
- Check whether a Binary Tree is BST (Binary Search Tree) or not
- 1[0]1 Pattern Count
- Capitalize first and last letter of each word in a line
- Print vertical sum of a binary tree
- Print Boundary Sum of a Binary Tree
- Reverse a single linked list
- Greedy Strategy to solve major algorithm problems
- Job sequencing problem
- Root to leaf Path Sum
- Exit Point in a Matrix
- Find length of loop in a linked list
- Toppers of Class
- Print All Nodes that don't have Sibling
- Transform to Sum Tree
- Shortest Source to Destination Path

Comments and Discussions

**Ad:**
Are you a blogger? Join our Blogging forum.

Learn PCB Designing: PCB DESIGNING TUTORIAL