MM - Lab (Expt - 10 To 13)
MM - Lab (Expt - 10 To 13)
MM - Lab (Expt - 10 To 13)
E SUIPMENT REQUIRED
ECLS micrepmeceser trainae ktt-DNA 25s
CAHEXKeyboord
C3) Pensr upplycherd
Inttruciian manual
ALGeRITHM
l iIniialtiRqrder B t h an 2-b hexadecfroa number
d' Bay DD H)
Intliala regitier C tth hevalue Q0H or checkEng
thCodends regeater BL palRndrorme cr Dot
t Capand mave thecamdends a Bta th accumuladee
lgztse A)
Roiate the centens oi the accumu latar ourdne and
Ctompar t aidh th Corderds_ regfadez B
TH cendards ol thiaccmulatarr and regiatsr B_are
cQua theo fncrLosnt h value o reqfLter C one
Cco RLC
CcO RLC
RLC Cormpace B
Coca B2 CMP B accunl
Jump te CoOEH
CODA C2 JNZ CoDE HL
LonB OE
Cocc CO Tnceement C
LOOD TNR C
A<C2
CoDE Mov A Store accumulator
CO11 Co
CoL CE HLT STOP
b) Duput
Memc Addres Data Siar ed
01 Tue)
Teacher's Signature
Date 13iel22
10
Page No.
Ta ise hecutput
nRet the EcQKAm.
Pess SET hutter andantse he addresi Co13 H
) Prsu on TNRbuiten encs
SushtlKunar Kaikia
1aocS D1GEL
Date 13l1ol22
Expt. No. 11 Page No. 31
EQUTPMENTREQUTRE D
tL) 2085 mfcroprocessor cafnee ke DYNA 25
T
aHEX keyboard
(3Poer upply chard-
(uTnztruatfan manual
ALAORITHM
D|TnikalfiereQfder B it h 8-btA bexadleciomaDumbsx
whei 1quarroat tahCaleulated
Maks the condeote o reqlalor A laccumulaor zero
iiCaapaee he Contents o eqistor B Nththe carten
thaceenulador TH he arqua,then idare
the aocumulator contente fatha de ofrred msmar
locatfan a the squaretaot
T contants _ol regFter B andaceumulator are not
qualtoen fa21Palistregertsc Csith t value OLH
and re9Ptor D aftb 0OH "(regirtar D fl 2tore and
updadete sqLuar Toot)
AddAdd h cantenbs egfgterCand aceucoulatz and
tor a t h e RurO n accumlator
Canapar conte ntt ACumuuloter and reqfttar B
Tfaccurnulodor cantent i la han D, thsn
Rocrernsnt C i a an zteps (y) and )
&tty T accumulatarconten i eqiualt B, then fncre-
ment DD.b 1 TA i i areater thanB, hentaree
Teacher's Signature
Dote 13/Lo/22
Expt. No. 11
Page No. 3 2
Co19
Co1A Co
Co1B Mov CA- c A
CoiC 5+ Mov D A_ D cb
LneEemept C
CoiD OC TNR C
CoLE 81 ADD C- A A+C
Co1F BA CMP BB
CA IZ Co26 H
Tump to B
Coab t
CO20 =O
CCA1
CO2 CO
JNC Co2C H Tump t Coac
Co22 D2 A BB
CO4
CO25 Co
Inceement D by
COA 14 TNR D-
OC TNR C
CO29 OC TNRC C
CO29 TMP Co1E H TumP
AmP CoLE
addeesE
Cc2A 1E
Teacher's Signature
Date 1 2 1 e l a a
Page No. 33
Lxpt. No. 11
EXECUTLON QE PROGRAM .
ali) Resek thepEgmr
L Presu Goand ender atalfeqaddre o aprngram
wbichP Coy H
EPxe 'ExEUTE' TA Erland i dEzplauad, meankd
Progom ii Auccesduully executed
Toee the outpuk
Rese theprogeam
PrLSET buttonand ontortn
ttaddre Coai4
Teacher's Signature
Date 13/10L2
Ixpt. No. 12 PageNo._34
EQUIPMENT REQUIRED>
EO35-miccEop.roceAL.oerofnee kR _DYNA 25
La)HEX keybaar
(2 PoNe Rup ply_chard
Tntrucdon manual
ALGORITHM
2Tntizal?sareq8rder C thadetred 8-bit baxadecional
vaue raaxiroum OR H
Mal Mak th cantents ~accunAuladar (regtelsr A) zero
HETnikalkz H=L roqfkter poair aith th value Oc01 H.
tCampauren ceodents otreqfater C alt thosL o
accunulator, ReRtuftbout ineremeniloq h lader'a
Contents andHon a incremerding i oneR
T P o tberCake he contek areequal hen kBor
the H-Lpair Conteott n deiiredconsecutive
MenAr ocafen
Ca Cante.nts are Dot equal,thea
FotltalPz rePater E aith antents_o re der C and
reqfder D ithdh value O0 H
v Decreoment he ConteDts od C lay
iRIn4EalfreH-Lpoir a h o0oOH_and mave C contents
Page No. 35
Expt. No. 12
DCremant B ay one
Ixi RepeatepiH) t o to lx) undl the alue fn B
CORS 06
Co3y AF XRA A A ADA_
Co95 21 LXT HCoo1H HL 0001
CoB6
CO91 OO
Compae C wh
CO9 B9 CMP C o'ccunuaep
Tump to CoS
COa CA JZ Co55H
55
Co3A
COBB Co
TnerementA
COAC 3C INR A-
CoBD BO CMP C
CA J7 Co55H TumP CosS E
CoE
COBE 55
COuo CO
Deceemen
COy1 3D DCR A
Cou2 59 MOv FC
Teacher's Signature
Date 13/1o/22
Expt. No. 12
Paye No. 36
EQuTPMENI REQUIRED
RO85 micraproce.ar brakaee kel= DYNA 25
L HEX kaybaard
i( Tnstrucfan oanual
ALGORIIHM
IntitalEi accurulater reqtcher A) wtth t hxadecimal
equivalent nuoher 'n bscause FiLanacc sarfei ups
nth Harm ba h 4ensratecdi mfoiraun and maximu
dHand OF H Apeclacely
proCLedN Jutoer
Subdrach 02H frara tna accumulatar ondent and tare the
dterene fn heaceunmlato
Teacher's Signature.
Date 13/1Lol22
Expt. No. Page No. 39
ME Dec.emaniH=L-pair cotant y on
EMak b Cetenks adcutnulalor zeeo
MmoyAddresiMachinCode
Memos CodeMnmonfc Comments
co61 Cornparre A wh
CO6A FE CPI O2H. OLH-
CO6B 02
Jup to COFE P
COG
CasD
CA JZ cOLE H up-O2H
COGE CO
CoGF D SUT O9H. A A-02
COHO O2
COL Mov B, A- B
COT2 Dectement
alu HL pa
DCx H
CO+3 SUB A A AA A
COTY 86 ADD M A A+M
COT5 23 INX H
COt6 26 ADD M
COTE INX HL
COR MOV M A- M A_
CO4 AB DCX H
Decrenoent B b
CoTA OS DCR B.
COTB C2 NZ COF3 H Turf 00.
TumPto cOT9
Cog
COTD CO
COTF CF HIT STOP
CONCLUSION
NBy veriAyingdbe reult, conelude tea
h prccam alakLuccLadully-ad executed andthe
delcid u l t a r obtafnsd Th Etbonacoi acrie wa
ncaled upt dhenh Herm andtored n
CcnLsCulfve maoerylocatians
SuahtlKurnar Katkta
1a0cS0164
Teacher's Signaturee