Addition of Two 16 bit numbers in 8085

jojo January 18, 2011 No Comments

AIM:To prepare a program to add two 16 bit numbers for 8085

PROGRAM

MVI E,00

LHLD 4200

MOV C,L

MOV B,H

LHLD 4202

DAD B

JNC LABEL1

INR E

LABEL1:SHLD 4204

MOV A,E

STA 4206

HLT

SAMPLE OUTPUT

ADDRESS

DATA

INPUT/OUTPUT

4200

F6

Input

4201

A3

Input

4202

2F

Input

4203

B4

Input

4204

25

Output

4205

68

Output

4206

01

Output(carry)

RESULT

A program to add two 16 bit numbers for 8085 was prepared and output obtained

Leave a Reply

Your email address will not be published. Required fields are marked *