You are on page 1of 8

Tris hawha Mando

Expt. No. Page No./ 22


120, EE2
Date./17o6 a4

uoa-tion tidean aMembl Longuage _pragramtb find out t 8quara


Qn 8-Lik daka in tA Doungeo 1t 9 ving t Lk UP tabta
Hchige Assume tha Lok p talul is avaikabtein mer wi
StopHngoddreas950H Assw ak giren dala i arailabe ak
90AS HMemoYy ucaim. gtre te s9vae yolwe in 98e0Hmewor
Locakin olse atme FF in o e tocahias

Pmaro Address Look Up Tabl


LXT H, 9S0 + Address (G) Doal)
8 oo L OA 904S H+ 956

MVT C, 0 t 951 O

LOP CMP M 9 502 2

JN 2 sKTP 9so 3 o4

9S04 o
TNX
0 D MOV AM

JMP KTP 2 SO 6 4

8Ol KIP NX 9s0

8 o12 TNX 9So 8 S

86 13 DCR 9so9

JN2 0OP 9 S0A


MVT A, FFH 9 so O 24

9 1 9kIP2 gTA 980D4 9s0 6 o 7

HLT 9So D

9so & 08
Address (4) Dota(t)
Inpu
90 45 2 95 O AD
oxrORD ouput: Addts(4 Dotat 951o o9
SI

Teacher's Signature..
Flb ohan
(Stamt

AD 9045 4

o regisleo A with
CompoYe Condeu poin
Conkena adregs eeee 9Rrrgister

en

T
Fol
HL-HL|

ADHL
(JUMP

HL HL+

CD-1

Toe folse

FPH

STOP
rig haAa Manded
Expt. No.
120
Page No./23
EE-2
Date./

2uestion i rite on ALP_ tat cam dekera vmine nume® of 0's


a d l's in Lit&bit mben Stured in 250 H_mamo ocaki
SoreRL- of eua o's d 1's n toooniLcutive
2otocakiong &hartia fro
Address Mwmari
LDA &5o
MVT C, 0&4
MV D, do

MYT E, co 14

LrOP RAL

JC ONE

2NR D
3 NP KIP

961 ONG: TNR E

%012 SKIP tDeR

8019 top
MOV AD

8614
MOV A, E

4LT

Addrtes(4) dotam )
output ddess ) dada t)
86 o3
&60

oxroRD

Teacher's Signature .
B FLOW ckor
tar

A 95HD|

Rotate thi cankn o to blt amd ghre tAe


Cowktnt oD into
co

Tyoe
Fole

uwp

ECIen

Kte
Tre
Fal

AL 0 Ha
ADC
A %ol C

S+oP
Expt. No. Bnis hamaa Mando
Page No./ 24
EE 2 , n
Date./

3 thm úDriBe on auems Language progro o gexerae


Ao anemamk ofleoNALC ries gtore Fikonacsi seciea crkg8-
fro 80sD MaerAotatios
Pnaro Address (h do Mnameni

lt*
MV A do

MV n,o1
& oot MV? C,oAH

800 9 A ADD
T Ax D

&o NOV HB
00 D MoV B,A

OV A

&o1D
JN2 wop
8 o13 LT

Output KsKsA
Addvese 0so 80S 9652 ROS2 8o54 805 5 8056 205
8 D IS 22
data ( :

ddreu (t+)!- *8OS9 9059

dota(4):- 3* S9

oxroRD

Teacher's Signature * * * * * * * *
Floo chor
tort

Cao4 H

Add tRe onnlen u A wi R Cote of o ond


revtt in A
olowet

DEDE* |

8 A
A t

2eo lag
TTUe eset?
Fole

StoP
Tbriskanka Nandal
Expt. No. Page No./ 25
EE 2 , 120
Date.
Auna tioni Wril an assambly language _pregrm tocheckwhethen
aarraatorhirg Aron 50H i PALINROME t. Aseume Bo
ah AYT dicahas t array length orTayiscounted
ha in paindom_elate MH into nemor oca'» 95004
04aroie plate oo 4inb te me mory tocahin 9500 4
-ogrem AddrssCH)_ Mneeriy
LXT H, 95o
860 LX D , 9S o6 H

MOV A,

RAR
608 MOV CA

9 LaAXD
80U A CMP M

IN2 KIP

TN t
DCX D

86t N2 LoOP

8614 MVL A H

01 MP NSXT

&o19 SKIP V A, 004


& 0IB NEXT TA 95 o0 H

+LT

oxroRDnpst Address: 850 8501 502 8S 03 &504 8soS


oS A
Da ( 0
dreas(4) 95 oD Data (4) 11
OUpt
Teacher's Signature...
Floe chanl

85

8506H

AA >
Rotae +R tontento t o riglt and atve the
Condent Do bit into Co Haa

AQ
A
Lompave tte ontet ofA
Pard HL Ygisr Paiv
Mema add *ss

TruL

tL+
DE-1

True
CFol
A H

A 0oH

A 950 H
sto P

You might also like