×

Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Addition of Two 16-bit Numbers in 8085 Microprocessor

In this tutorial, we will learn how to find the addition of two 16-bit numbers in 8085 Microprocessor using 16-bit operation? By Akash Kumar Last updated : May 13, 2023

Addition of Two 16-bit Numbers in 8085 Microprocessor using 16-bit Operation

Given two 16-bit numbers, we have to find the addition of two 16-bit numbers in 8085 Microprocessor using 16-bit operation.

Algorithm

  1. Load both the lower bit and higher bit of first number at once.
  2. Copy the content HL pair to DE pair register.
  3. Now the load the lower and higher bit of second number in HL pair register.
  4. ADD both the register pair content using DAD operation.
  5. Now move the result at memory location.

Program

LHLD    2050
XCHG
LHLD    2052
DAD     D
SHLD    2054
HLT

Observation

INPUT:
2050:11
2051:11
2052:22
2053:22

OUTPUT:
2054:33
2055:33



Comments and Discussions!

Load comments ↻





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