Professional Documents
Culture Documents
B-622 SPCC
B-622 SPCC
2petlmai No:.
împlementuwo oc Accernbleh
Aim- maam u
Theo rdtten
Acsembletsic apaham dor convertig înweienu
n Jowleve_ascermblu cae into maabihe Code and eneAatina
oa two paac
alma fnoumahico ooade.he advaniege That tic Lzed
AAmernbleA ove a linglema aMemble ane
to elinainate dorwudelelen.ce noblem
heain
sadia4 addseacaen
LocR=Alastin_addrec
else
LOCCTR = 0
while ofcoDe END do
beaîn
ea a ine on he Ccole
fhe ic a abel
it Thie Yabel is in g¥NTAB, hen ea
ece înseAt Nabel loccTR) into yNTAB
SeaachOPTAB CMbI) foy opCode_
and
LOCCTR =N
elce his is an acsermb direefive (foT)
. W.
LocCTR aA dreetion
Upde
elce es0o
Toitfali2e
Read
Shm
Shorot in
lae ST with
on Co
TyPe?END ofo
Ceorth Po0T
DS
pc
data
Deleamine lenath of
Seaneh MOT pare2ejus ed
pdale
net ngth of PoceC
Heals LLe
hsChon
PASS-1lourheat
MANJARA VANarabLe TRUST Page No.
RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI
JUHU VERSoVA LINK ROAD,
VERSOVA, ANDHERI (WEST), MUMBAI
53.
Pasc L 0sceme_degnilhm
beain-
Sreod a ne;_
torode =START Then
wite herde hecovc
whle opode END do
benin
Seduh oPTAB or oprode
Read
eND - cleonU
OUNDD
T PE ond ei
eudo op Tale
LPO13,
POTAEL
NOT FoUND (onyt and
DS
Seoch Machine
OP Table
Deemine lensl
MOTGETL dala cpare
Accemble tcaelhe
the penH, o h
h etion
updale
ocahcn Conk
PACS-flourhast
Page No.( K
MANJARA lAuTakLE TRuST
RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAL Get next
JUHU VERSoVA LINK ROAD, VERSoVA,ANDHERI (WEST), MUMBAI 53.
token
Dmal s dattabacee în Paac-TT
T_Cymbol Tabe)
mbo Nalue | lenath Reloation
chu) hex) Chex)chaa)
O00C 04 R"_
L Citea Table)
Litena Addece
BT CBeue Tade)
Avalabil Conenk ne
Tndicotos nea
chau Ches)
"N'
000000
JUHU
OF TECHNOLOGY, MUMBAI1
VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI -
53.
Enpesiment No.
Atm-0giam to implement two pac Macro wceco
Pacs alprlhm
Step Itialize MNTC CMaco NName lable) Cownle= O cnod
MDTC CMao dlelintion Table coonle)=
Scan dp au macro olelznitionu 0n by- ont. TMACRO
dound in pogAam Then o each maco peem pepm
2 : MNTC= MNTC +|
:2 nea name MARO in MNT CMace Ndme ble)_
-33 ho oVeuhddeltaemert MDT=MDTC +)
Enteeention c MACRO in MDT CMAo
delnition ade)
&S: eneate anaument c t aaA.
Cleps: Énd
AMDTC-1
MNIC
Read next
SoUme cale
MACRo
PSE UD o
NO
Umle
o
co
coUne tode
END NO
eS PsEUDO
Pead nert
Seetcole YES
oto
EneMaoname Pas-
and cusTEni
Nalue în MNT
and MNIC
Reca next
Coume cord
MDICe- ADTC4)
No
PSEOD
Page No.
MANJARA kurabue TRusT
MUMBAI
RAJIV GANDHI INSTITUTE OF TECHNOLOGY,
MUMBAl 53. -
Pass-T algortkm.
12 A 1,#1
A2,t 2
MEND
Sarch MNT
for moteh uwth
Lo peAaRon toce.
NP
stUDo OP
YES
MOTP MD
index rom
MNT entn NEs
Supply epandcd
SoUme
Sehp nqumeri CLscemea protel
MPAOTPA
Cnet Line&om
MD
d e enparded
ovrae Lode
Pasc+lourhat
MANJARAaurabuu TRUST Page No.
RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI
JUHU VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI 53.
RI b
Ra bbb |
Daeye Used in a T
apelmer Nos
Aim; Pham o plenet Ttemedicte Code berneiation (TG)
phaeocompiles (Ovacruple)
Theoc
Aoume tocde can_divety_be ranalarted ito e
Mget codle The eauon_wheneed a inteAmediak_Lode is
ta compilea sanulates fhe Aoumeanaucae to jaugek
mle anauaye. uwo having he ptton dor aenetating
inteinediate Wle then a c neua 'me eea n
native tonpile is adredTtelmeterte code elminate
he need a new comple dor eyea uniqe me
Code bypeepina the Cinalysis pochon Aare or all
COmpile
Tree Adnecs (ades
T a t4pe oineaneliak code which is etogeneale
and (an be _ey onveded omachine cae.Tmaet
Use rtmost Thee_addnesses Cind one opeaor-to_
hepseert_on expsekon and he volue compued ctt each
inuchon ieosed in temporaily Nadable o bu
Compie Thee a 3 egventatidn thee addrt
Code
0 0 Tipel-TRis hepretertahion_dcomt make uxe o exa
tempo ranu NOuialble apveent a Ainale bpeNationInuad
when ahelaene to_ahohe shude vdue k heele_a
poinle the tht iee isUse ot conist onlu 3
hields rMmdy Dphe1 and na&
Thee Addhces. (adc
t y
t2 z2
3 4A2
O e Reprelentetion
OP
Ar2
() Z
2
Z
5) + 4)
Auacdvpe PseAenierhiom.
oP r A 2 Reu
t2
3
t2
MANJARALikRak1E TRUNI o
Page
mar e u poinle
Tnah sed tiplet Thishepmeletation
aueelence to Compunu uhith
to he ichn o (ormpned
s made Aepondfelyand tore n utiliy an
qvodhople epheenction t rRineXeu Apare
than t
heldu
uedrupe:- Tt is uehe wheh convis e 4
enaku dhu.
namely op g1, Aa A n d hetult op
Ang_lenok he 2opeAcctus
DoeAkosand Ag 1And
to The_hewt e ehpion
eAultiYeed
an
Juteu áullAidied
an
ente, ave apaclnogle)-
lonclocon lnertn
Inglemeeted Jnlkemadakk lade
MANJARA UA ABIE TRUST Page No.(
RAJIV GANDHI INSTITUTE OF TECHNOLOGY, MUMBAI
JUHU
VERSOVA LINK ROAD, VERSOVA, ANDHERI (WEST), MUMBAI 1
Epeliment Noz-
Afm- og2am to implement tode opiiml2ation
lrhnique
Theor
Ihe_tode pptimization in he_lylhenis phau ic a
pgttam tianzonmation technique ien o poe ihe
nteumecdiate code by makin t_(onwm teuwe 'heunuMe
la that aate idnning Omachint Codz2 ill
geault-
campile0ptimi2ina pmceh4- hosla ouet fhs dollouing-
obieelive
Th optimi2ation must be_comect_t md nat in_AnyuA-
chanaeIhe way M pram
Dpininaion hosldinrean Lpeed and eamrmante
thpasam
ih Complhon ime must_be kept geannnabe.
h cpBmi2ation pacceccRhould na delayThe Oveaall
npilingdeahxe.
Code Optimizaion ehnigues
a ommon_kuh- bparestion Elimination?
he eapescion. THat_han peen elneady_omput belere
Anc appeau again in fu mde Jor compoehion tall=
AA LdmmonXODcquenie.
ode Movmeatt
Souelva moucmzn effhe tde The tode tpeent intede
-tineleep
tbe leep moved cufft doe_not matHe whetea
peent inuid en~ide
Dead coode
mi ncrhio
ode
MoNCmert Conutunt
Folding
Cornpile Time
Eatvaio
Code aptimizotion
Teertqve
ontet
frponcrton.
/hrerisfh
Reduchon
Cornpon ub
EpntuionZiminathio
AA T
ICT Page No.
D
MANJARA
MANJARA CHARUTABLE TRUST
RAJIV GANDHI INSTITUTE Page No.
Lonutant pldings
Th thifehniaue he nane uggeat it_inuae_doldhne
th censtant. "The enprcion nat tontain th_otrdot
Juaving comant vala at_ompile fime a evaludked.
Thoses
Thosed eprcionau Thun heplarzd with theth
uepehve Jevl.
_tot24t dameteu
Compfl eNaluake _at tmpile im
Than,it i eplard hy g/4 tn The eMprtion
Page No.
MANJARAUilAurabILE TRUST
Snpesiment No-
X 2
MON2o
ADD