You are on page 1of 5

OSMANIA UNIVERSITY

(12 Pages) (FOR PRACTICALS ONLY)

NAME OF THE EXAMINATION BE y.SEM.EXTERNAL PRAeT ICAL EkAM AP RL ***** ****


2020

HALL TICKET NO.


2us3-8 733-016
SUBJECTOMbuut es.ahon..
* ***9********** ** PAPER aboroto * * * ****

CENTRE ELGOSE TTEDEC HNOLOGy. DATE L7.I2020


*********************************
**********

INSTRUCTIONS TO CANDIDATES For Examiner's


Award Only
CANDIDATES ARE PROHIBITED FROM WRITING
THEIR NAMES ON ANY PART OF THEIR Question No.
ANSWER Award
BOOKS: they are further forbidden to
address the
examiner in any manner whatsoever in
their answer
books, if they do so, their answer will not be
valued.
2 Do not forget to enter your Hall Ticket
Number, II
otherwise your paper will not be valued.
3. Before beginning to answer
any question, write the III
correct number of that question.

Answers should be written on both sides of the paper. IV


5. Do not write on the
margin, (Please leave a margin of
1 1/2" on the left side of each
page). v
6. No loose sheets of
paper will be allowed in the
examination room and no paper must be detached
VI
from or attached to the answer book.

7. Addtional books if used, should be


to the original answer book.
securely attached Viva Voce

8. The answers of candidate must be


legibly written. Record
9 On every page of the answer book,
candidates should
not write more than 16 lines. It is not
necessary to Total
begin each answer on a fresh page.
Oriitte
0 e an acsembly language proqvam f e adding tuoo

BCD numbers

Aim:
Psoam to perform
To Tnte an assemblyangutag
BCD DumbCrs
additien dtwo

Apparatus

oth MASM eltoa Ye


PC installed

Alqovithm
Seqmeot ad Cleaar Centent e A
Snitiatize data

Teqister
data seqment into At i s t e r
Get value rom
3 Get Value rem dota Sgment tnto BL register
these tuoD numbtrsContents in AL and BL reqisters)
4y Add
5ApplyDAA instruction decima adjust)
Store sult in ocatiion namte a Scu)
cy
Stat

Initialige the data

ctearAX estcr

e t nvalue rom
data ccament l AL

reguter

Getavalufrom
dato amenta BL

Add AL and BL Contsnts

-und ppy DAa

Store

(Stop
Oqram
Assume CS:CDde, da:data
dota SEqment ctats
dota eqnent
I1 declaving ariable n
Ddb 3 H
yaniable na
h db 284 declan ing
4wo tocations
I declaing
Sum db ?
ends
data Seqnernt
cata endc
Cemeot sta
Code
Code seqment
q n , into al reqs ter
mov O, daa mo

movin nto bl i st e r
mov ds, a

bR aM, a
toadd

aD Cdd0, tob
mDV bl, n2
tohftntee al, bl 7eqister
al, bl
deinq.
ordd
elaa
apptyaDAA
mov Stum,a

int 2H
Code emet enols
code ends
ps oqsCam ends
End
Result
Inpat
b76C Oooo84
D7 6C oo 28

Outpu

b7 GC 0002 G

You might also like