Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING

Addition of two 16-bit Numbers using 8085


Aim :- To add two 16-bit numbers stored at locations C070 H and C072H. Also
store the result into the next memory.
Apparatus :- yna -!" #icro$rocessor %it& 'ower (u$$ly
Algorithm:
1. (tore no1 and no2 at locations C070h and C072h.
2. )ead the nos in the re*ister $air H+ and ,
-. Add the nos.
.. (tore the result at memory locations C07.h
". ,nd
Program Table:-
Address/H0
1$code21$erand
/H0
+abel
3nstructions 2
#nemonics
Comments
C000 2A +H+ C070 H
+4 ata in C070
H
C001
70 H4ata in C071 H
C002
C0
C00-
,5 6CH7 H8& +8,
C00.
2A +H+ C072 H
+4 ata in C072
H
C00"
72 H4ata in C07- H
C006
C0
C007
19 A H+ : H+ ; ,
C00!
22 (H+ C07. H C07.4 ata in <+=
1
C009
7. C07"4 ata in <H=
C00A
C0
C005
C> )(T1 ,?
DEPARTMENT OF ELECTRONICS & TELECOMMUNICATION ENGINEERING
Results :-
nput :- ata in C070 H @ 16
ata in C071 H @ 2-
ata in C072 H @ --
ata in C07- H @ ..
AAter addition :-
2-16 H
; ..-- H
67.9 H
!utput :- C07. B .9 H C C07" H B 67 H
"on#lusion: -
2

You might also like