- 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 the content of one segment to another segment
In this program we will see how to add two 8-bit numbers which are in different segments.
Problem Statement
Write 8086 Assembly language program to add content of memory location 2000:500 and 3000:600, and store the final result at 5000:700.
Discussion
Here we are initializing the CX register with the base address of first operand. Also store this into data segment register. Now take the number from offset 500 to AX. Now point CX to 3000, and load DS with 3000. Then add the AX with data at position 3000:0600, and store result at AX. Now again load CX as 5000, and store the AX value at offset 700.
Input
Address | Data |
---|---|
… | … |
2000:0500 | 2C |
… | … |
3000:0600 | 4F |
… | … |
Flow Diagram
Program
Output
Address | Data |
---|---|
… | … |
5000:0700 | 7B |
… | … |
- Related Articles
- C++ program to append content of one text file to another
- Program to find area of a Circular Segment in C++
- How to copy the content of one HTML5 Canvas to another Canvas locally?
- 8086 program to add two 8 bit BCD numbers
- Program to check if binary string has at most one segment of ones or not using Python
- Draw a line segment $AB$ and bisect it. Bisect one of the equal parts to obtain a line segment of length $\frac{1}{2}(AB)$.
- Add one Python string to another
- Add one polynomial to another in Python
- 8086 program to determine modulus of first array elements corresponding to another array elements\n
- 8086 program to add two 16 bit BCD numbers with carry
- Construct a line segment Ab of length 8cm. From this, cut a line segment AC of length 3.6 cm. Measure the remaining line segment
- Add one Chebyshev series to another in Python
- Add one Hermite series to another in Python
- Add one Laguerre series to another in Python
- Add one Legendre series to another in Python

Advertisements