0% found this document useful (0 votes)
139 views2 pages

8086 Assembly Language Experiment

This document describes two algorithms for adding 16-bit hexadecimal numbers using an 8086 microprocessor. The first algorithm stores the numbers in registers AX and BX, adds them, and stores the result in register AX. The second algorithm loads the numbers into registers from consecutive memory locations, adds them, and stores the result in the desired consecutive memory location. Sample assembly code implementing each algorithm is provided. The document also provides instructions for executing the programs and verifying the results.

Uploaded by

Mahakaal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views2 pages

8086 Assembly Language Experiment

This document describes two algorithms for adding 16-bit hexadecimal numbers using an 8086 microprocessor. The first algorithm stores the numbers in registers AX and BX, adds them, and stores the result in register AX. The second algorithm loads the numbers into registers from consecutive memory locations, adds them, and stores the result in the desired consecutive memory location. Sample assembly code implementing each algorithm is provided. The document also provides instructions for executing the programs and verifying the results.

Uploaded by

Mahakaal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Date 20/1o |23

Expt. No. 14 Page No.

ATM EHEEXPERIMENT To perdoro addrtisoott-


16-bitbexadecemal numbecs fn 8086mtccopreceLlD

EQUTPMENTREQUIRED2
(18086 microprocessoc trafne E_ DYNA 26-
LE)GIERTY Kahoaed
Pow& upply eberd
Instruction manual

ALGORTTHM
LaMe thod 1
OTntial£ie_Kealrte AX_and BX N'th tan ddfekeot
Dmbez
bcto tn reQlgters and2 toru
Ad heconded o
Sum fn reqfiter_AX

llead reqder AX and BX alb tla diierent


umbez{_
gtered n memon
Add theCondect e bcththe regfter and dnE
thegum io the deairedConiecutive meonary Locatfons

RoaRAM CoDEI AsSE MBLY LANGUAGE)


aMehed 1
Memory Addreis MnemonicS_ Conneotk
MOV AX, yyyY H_ AX -4uyY
1 o03 MOV BX S SH BX 3S25
1006 ADD AX, BX X AXtBXx|
HLT STOP
Me thnd 2 -
Teacher's Signature.
Date o/Loleaa
Expt. No.
Page No. 43

Memor Addrest Mneoonic& Comnents


- [ 2 o oo)
1oo8 Moy AX, L2ooo
H
BL AH L2002J,
1ocB Mov Bx, o02 H BH [200SL

LooE ADD AX, BX =AXtRX-


[2004]<A
[20051 AH
Mov L00y H AX
1012 HLT 3TOP

EXECUTION OFPRoGRAM
a Metbed 1
AXer utFagh proqKam code fndth asRemble r

Typ G &tarlas addre ei endinq- addre s ane


PreR ENTER
hEE)Toieautput p Raiterexecutlan and pReLi-
ENTER
( Mtinod
Pz E stardänq adsre a 9 and Preu ENTER' to

Preu F
ter requiced number adetired memat ocadfens
eca2ons
Pek Es type tacknasdresi endE addee 9

,
ater tering thprogkamcode and res ¥NTER.
LeEToo but- Dstardêng addre, endna
addre and prl FNTER

CONLCLUSION After verilfn- h e reults a


Conclude that h
exAauled and th d tÊred KOult_Na olained

Teacher's Signature.

You might also like