×

Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Addition of Two 16-bit Numbers without Carry | 8086

In this tutorial, we will learn how to add two 16-bit numbers without carry in 8086 Microprocessor? By Akash Kumar Last updated : May 22, 2023

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.

8086 program to add two 16-bit numbers with or without carry

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-bit numbers without using carry.




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.