- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
8086 program to add two 16 bit BCD numbers with carry
In this program we will see how to add two 16-bit BCD numbers with carry.
Problem Statement
Write 8086 Assembly language program to add two 16-bit BCD numbers stored in memory offset 500H – 501H and 502H – 503H.
Discussion
Here we are adding the 16-bit data byte by byte. At first we are adding lower byte and perform the DAA instruction, then Add higher bytes with carry, and again DAA to adjust. The final result is stored at location offset 600H, and if carry is present, it will be stored at 601H.
We are taking two numbers 8523 + 7496 = 16019
Input
Address | Data |
---|---|
… | … |
500 | 23 |
501 | 85 |
502 | 96 |
503 | 74 |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
600 | 19 |
601 | 60 |
602 | 01 |
… | … |
- Related Articles
- 8086 program to add two 16-bit numbers with or without carry
- 8086 program to subtract two 16 bit BCD numbers
- 8086 program to add two 8 bit BCD numbers
- 8086 program to subtract two 8 bit BCD numbers
- 8086 program to multiply two 16-bit numbers
- 8086 program to subtract two 16-bit numbers with or without borrow
- 8085 program to add two 16 bit numbers
- 8086 program to multiply two 8-bit numbers
- 8086 program to reverse 16 bit number using 8 bit operation
- 8085 program to divide two 16 bit numbers
- 8086 program to convert an 8 bit BCD number into hexadecimal number
- 8085 Program to Add two multi-byte BCD numbers
- 8085 program to sum of two 8 bit numbers without carry
- 8085 Program to multiply two 16-bit binary numbers
- 8086 program to divide a 16 bit number by an 8 bit number

Advertisements