Home » Embedded Systems

Addition of two 16 bits numbers without carry using 8086 Microprocessor

Here, we are going to learn how to find Addition of two 16 bits numbers without carry using 8086 Microprocessor?
Submitted by Akash Kumar, on October 21, 2018

Problem statement:

To perform addition operation between two 16 bits numbers without carry using 8086 Microprocessor.

Algorithm:

  1. Load the first data into register AX from memory.
  2. Load the second data into register BX from memory.
  3. ADD content of register BX with the content of register AX.
  4. Now load the result value from AX to memory.

Program:

	MOV     AX, 2050
	MOV     BX, 2052
	ADD     AX, BX
	MOV     2054, AX
	HLT

Observation:

    INPUT: 
    2050:02
    2051:02
    2052:02
    2053:02

    OUTPUT: 
    2052:04
    2053:04

Hence we successfully added two 16 bits numbers without using carry.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.
Learn PCB Designing: PCB DESIGNING TUTORIAL




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.