0% found this document useful (0 votes)
29 views14 pages

COA - Practical (5 - 9)

coa practical

Uploaded by

A
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)
29 views14 pages

COA - Practical (5 - 9)

coa practical

Uploaded by

A
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
You are on page 1/ 14

Crieatal o22t Seteee and Tdraloggn Blopab

Roll NoofoSCgpol39. Scholar No

Aim orile poaotm in Ctt o wap


nunb

Code
ioclude iostheam 2
O8in namesp.at 4
fot m.oio

fnt
azSb lo emp
Coth Betotr daopping 2ndl

Cotut*bE 5 Cndl

a b
b m

Colut AfHe 8oopping endl


Cout "9E 9 endl
Cout bE b endl
aeHLn 0-

LL
Roll No Ol03.Cgao)6 3 y Scholar No

Output.
Bott dtuappi

LL
ALte uapp
9 Jo
Catertal s2ae } Seteree ard Tehrabog Biofpal
No.Ol0SA 90103.
Roll
Scholar No.

Aim- tOakq prog o9minC pio


ASCTT value Charactc

Code-
hiocludeiogthrom

choti
fo (iA1; ikE z' it)
Cout x i " e " *in+)i w end

Cou J "=" Liot )i a endl

Oulput.
A E 6 S

8 66
CE67
D 68
69
H 72

JE11
15
7
ME
N 78
O 79
fE8Bo
8
R 82
F83
TE8
V B6
WEB

Y 89
Z=3o
9
b 98
99
d Joo
Jol
f 1o

oy
Cctetal taatae af Seterce ad daogg Blopals
Roll No
Olo SC800193y Scholar No. nsses

l 6
k1o

mElo9
LL
P 11 2
113

V 18

I19

2 122

L
ree
PRODUCTS
Roll No.910SC8olo3.. Scholar No. .

CAim-urH an ALPCAS3emblg Languag Progoam)


ado finst ngu Dumbs

Ladthadaa rom tha m o ocadion


LRo BH OtbifoayChoja19BD h Occumulato
L0 Moe this ddBe into
3 nchemantdh valyz iq haacumulaBot on
aa move 1 toh e egg kes C.
, Snitaliae the accumylq.to oith

ulipli ca Hon t p adding CeCu mula tot,0he


Dumbe thAimd 8 h o s t o b e added18
th valua

6, Tpidialig th_ooM, i l Stotethu


qDhHend4 thu dividi.o
L niioligeC 0ollh Hlhi313 he_divido
or h divigion

Ahree B. Oividion kenp ubhaChin oom A 1 A becemed O.


HODUCTB
fo
fo eaCh 8ubthachonincemen yOnR
Roll No. eSSO2e].o3..Scholar No. .

heina Qastot i .Move it to A. Than Bone


th volueo A InOCH Cabitaag4 Choi 9gain)

ADDRESSS LAQEL MNEMONT C

LL RoooH LDA 2010H


Roo H
Roo RH
oo3 H MOVe,
oo P TNR A
MoVC, A
oo 6 MVIA O0H
oo 7H
Joo 8 H LooP ADDA
oo9 DeR C
&0OAP JNZ LOoPJ
0 o CH
oo DH MVI C ORH

RoD fH- MVS R0oH


olo
H
LoOP2 JNR
SU C
JNZ Loo P
13
H
o14
2ree1SH
ROOUCT
2o 16 H MOV A
Roll
No.10.S.CB 2a1R3.Scholar No.

ADDRESS LAGEL MNEMONT

STA o ] CH
o18 H
o19
o l AH
HLT

Stpae the valye o i09oH Thi


8um br 4ound

hree
PRODUCTS
Odetal ta0e Seeree ard Teluologgp Bloga
Roll NoOlbSK.B21$3,. Scholar No, *******p***M*n*************

8) Aim-waile ALPdo Co ug odd and e Dymbe


-s0mthe memo loca4ion
Algotithn
Load dhe memo ocation o0o fo HL g8Hr pait

Load the m2moty locaHon 100 Ío DE


Odd numbe
o dobing
3. ghoae fhe numbe Qleme.nt& iq alBe C
4Moye he DRxt numbg 10 ha li8+ to acCumulato

. P e om AN 0pehation 1pith oH D Chenk 03hh o


odd

C n t tha number i) accumilator and &de in H


Aoc int 0.E

nche m20 HL ectemeni C

2hree ID,
PRODUCTS
3 not 200 ump Step
atpm dimilalyabortdkpk oastoding
Roll No Ol0s CA2olo3 Scholar No. s onganot

Memob Moumonics Comment8-


ocatio

RoooH LRI H, Ro0OHJnitiol Memoy-poinka

&oo3 TH9l2 memoby poi9 E

006 H1 ToHalige Cotunktr


MVI C,3 H
oO8 H MOV A, M Chet tho num0e

&009 H ANI OLH Cheok to Odd number

JZ. 20|t 3 EVEN, dont 8tooc

&Do H MovAM nst th numbe

&Oo fh &tode the numbe 10 SUH LKSE


STAX 1O
&olo H INRD ncmeot poiott 2

oJJ H TNX nCament pbintt

9o19 H OCR C Dc ement Coun E


LL
JNZ Oo 8H
o13 H notKhbdpeaT-
Aree
PRODUCTS
Cectl ea242 c4 Seteree and Teduotoon Bhoftal
Roll No,9.o5CO ol3yScholarNo.

Memoy Moumon1C ConmentS


Locaion
&ol6 H LXI H,Soog H niHalig0:.mpypol
o19 H LxTD,0o H nholigemAmay poin 2
MVIC327- 3nhalige Caun.e
&o FHH MOV A M ned th numb

oJfH ANT oH chockJo 0en numbe


90 H JNZ o9 7H 44 000, don tone
o H MOV A MM Cnat ths numb2
STAX. 0 8wor th1 numbA in SuH lid
&o6 H J.NX D oChem et pain e 2

INK H Jnceneat poi0tet


DCR C echemenE eount

o k 9H JNZ 9olEH
ree o C HLT Stop
Roll No0 l5D J.6l03yScholar No.

)trican ALP to8btoact th wo 8-bit numbehs

flow oi44a

Staat
LL
A PioSt opt009
Se0ond 0paband
OoH

A O

CYO
Fals

CC+1

8avegult spmA to m2mory


&aye bonol m C to_
mama4-

LL
End
Ahree
.PRODUCTS
Roll No.OlSCODolo3..Scholar No.

Addaess HEX Codes Labela Mntumonics Commen

foo0 0E, DO MVI.C,00H


FOo21,00,8o LKI H,8oooHLead iniHa addesi to get
pet9nd
FoOs 7E MoV A, M |Load Acc ith memexy elsno

foo6 3 TNK H Polgt to nex lo cation

foo 46 MoV &, M Load 6 oith Scesnd opehand

foos Jo ubract om A

Foo9 0R, 0O, FO JNC STOREJhan CYE0, go to SToRE

fooC OC INRC TncteaseC by

PooD1,5,8oSToRE LXT H,8oso Load the daatinahco addhet

Eoo17 MoV M, A Stoat he

Fo TNX Pojnt to D&M locahjon


L
foL MOV M,C Stoe he botto

dliree fo13
76 HLT Teamin9k thu Pngaam
Ctetal ns2t2e of Setrce and Telerologgn Bhotal
Roll No
0105.cg Oolo3 Scholar No.

oput

Addat&s Dat9

78
5D

Cutpud
Addbc85S Dat

8050
8oS1

LL

RODUCTS
(PRODCe

You might also like