0% found this document useful (0 votes)
13 views

MPMC Unit 2

Btech materials

Uploaded by

nanisaginela
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views

MPMC Unit 2

Btech materials

Uploaded by

nanisaginela
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 23
ables | x ~Assembiy lever language Prgaam Developmens Tools'— > ALP progam tools ade Sofswase developmen Aools which ron in +WO -Assemyy TASM Tube Assembler , | MASM Cmicadsofy assemier ) — Jools inctude's editoy, assemybley, Finke, 10Cator, de buggey ana aemu\ator- (3 Edtoy!~ > editer is a file which contan Assemby language Statement fey the Peequam- Hi> the Ste general by elites Contain input fey the pyngaam- | 7 shod be given with an extensions asm FS the command used -Ro the editor is CBTASM? cat Alename asm | % ~Assembley:- SH is Used to HBuNstote Assemby level into Meachine level. | > FH generaie two files. the 4 fie is Called objet file, which Contain address aM dad Ky the Comvesponsing inghwclon ; > Tk Shovld be ven with Obj \ S the setond fle is Called Vist fle which +s Usa to om Memon: Mnemonic 3 is Called Sdvyle Fle which Progam in TASM Assembles generate the progsam < Soon . Ls CeTAsM? TAS 7 Sry Shoull| be coed iN & Linkes:- vabf 23 Fh object fies inte (arge > | Sie used +o ajvide large ‘Program moavie Mo smaltes Modules. > syne cB Taser ink Hename =e: Sa is eRdenty 1 i X Locators Say is used te ASSN object vawes where the Joadeg wrto the Memory pugrm code ‘Ste be > 11 genewte + BIN Carnepy Mle which Jenetates — Cach gy, eueny value in hexa -Toymade: ). tee es > TH is @ tool Which ONow debugging — Nd change, the Comem of vegisiey and memory location, it Allow ~“bdeak Ton > whose the paogsam Can be 2 Symax is CH TAS DLA Ble name + exe exe coted - A -pavessing mode - > the differen ways The paocessoy Can Alress dat rs cated Addressing mode: Is Tmmiaiate —Addsessng mode - S an lems doin 1s ¢ Sheches, Pa ths inshvewon seit. > Sypax 1s Mov destination, Sovyee Gye MOY Ax, HSaEN > & seeifle dota 2. Regstes -Addvesing mode’ Day this mode Sovace OMY deshnaton se spedta “Hugh segiss ers: ioe ey MOV Bx, Aly = de gisheye 3B. Regisies TNATECt ~Aadvessing Mode is Spetfea Indioecty Thaovgh He | Sap tis 1 -Bit dao Degsrey using Memory tolalon, DCJ invicotes ment tye Mov Ax Cox) 3 Nan iin enc ae u Dace -Adagessing Mode ‘= a In tis mode —Addsess locaton » OF the. CPextnd 1 Siten ' nope, A Me ¥ MstwGien ah sa ne Ee Mov Ax, (a3) S Implied —Adaxessing mode- > CoMons omy op Code of the instsifen- Eg Ste Set nrg CMC Compiemeas Gaey RoR CRetare wisht wsing Accumolatey ) 6 Base segisiey Using Sisplacement -Aaddess. : the content of a >t ss obanes by oaaing 3 sesow iS Move segss43 and displacement Odazess ‘Mo Accumulatey xegisses- SB- Mov Ax, (8x) (e000) > Tio -adressng mode: - : Se Consits & -fved Ho ana’ variable“ tlo aaay ess. . >) Bag zip he Por adésess is Constant Using In & out dectasaton. - “SN Ags Cord gut one, AK he Fiabe ¥ TNSWHON ger of O36 —- > ca Conshe of deta Jaanefey inswucion iy also Known as copy 2) Aransfey inshyuchon which iS vsed to Move the dora Sym Sovwe to the destination. now: >i copes a word @) byte fam destinakyn Begster Sowle MAY be memory ,Fegsley, oN immeacde date, ; i‘ ~> deginakon may be Sonce and Yegstes but Mendy mearrnny dara *eansFes |S nor Possible ne Flags are Ckredked Using Mev Anstouch on - > Syntox ts) Mov DestinaWon, sovsce,_ ource segutes to the FP > ES- mov Ax, 123n0 Ummetiae data Mov Ax, 3x C Regstes) MOV Ax, [2S00} (memory) 2 XCNG> ( exchange :- > BH exchanges the coftas of 1 segsies fo the anothey > SMlax is xcuG Desinalun, Soute - > Br xXCHe AY Lene 5 this Msiuction, determines the offset add8ess Pointe, 4] printey Yegister AN 104 We Whe Spec 16 UY degister | > Syntax is LEA Reg, Souste > @- LEA Bx, (oz) os eas > x push ofestid > Syrox is Push AX [Soi tre ee ae & 5 pe deta fam Stack Segment: > Symox 1 POP AX as is Yvo 16 Bit this instyueion Spesty the valve : : . & Tegister ahd tora into the uo 9 > Syntox is LDS, Reg, Sovace P T , D> Fer bps, an, (RVCsEP 1 states ote 7 = XLATI- ° ‘ J S ai orig 0 byte in Memoay Segment with ,e. Ht Poria by By segistes- 2! eae ae - 3 in ‘en ee Brae. + mn 5 Ras Rag? eg AP HAT ha rtcy ze wisiah bo ape ea Sea Lowes be of Fag Fegistey to A ye" t Saw oe COPY PH tO Me touch 1Owed byte of, fag weaiies- islajos » aonb Aone = (-Aadi on | Aaa op with S74) > boy > ada a Number fom sourte to the, destination with efFea of cowsy fiag., \ > Syntox is ADD Destnation, Source 7 &g- Ady y3an, FESEH ‘ oo Mov Ay, #8564 Aop Ax, HB21K A256 = ot 1000 oto! otto H2a2r = ‘oioo oo 9010 “000!, | Baa" voy You" OVIy | ONNA 2) 3 3 a a Ine (engeemeny: - > TA ads one to the spedBes destnation. > Syntax is TNC Destinavion > eg - Mov Ax, HaW . Adjust aftes addition): - > the numbers fim 0-9 dbe epresented 1 o-aq the vesulk Will be, YNFACKed Ascir oS Ben foamnat: > Syntax is AAA > &- 3h = 33" oon Gu = 36H Ole = yo . q Mask upPes Nibbte = OF4" - Ay DARE Credmal -adjust ARer Adaition)- 7 IP the vesuth “in .AL7g) add s-60 to alhe | ae wast Wadd 06" +o desu, Sesu + > xf the eso AL <9 57 ia Spee vans teaejs. greater rons a 6 te the veut > she xesvly will be i” packed sep Rema. > symax 1S DAA > &- Sir 3B BUG WH OO 1000 190 oo 100 1001 49 HQ WH = 1001 1001 wat ew TiTormemO ro Cham oLOOnn UU aaa’s’ 6 V0 hg ’ Awe Ch overt, 009! yoo! ota x ie 10. Bh Ve Vo wu iv i * Rolote Thshsuckon’- aol due a4 consists of — Ror, ROR, RCL err! 3 ovate tefs)'- aon bit frm LBM) > 4 roiate the “> Syntax “9S Ror. - Deskinavon ae i ' © aww t émen 2 Eye ISSN e RAN ett mss 1o 2 eae awe MW. % . ar Ne tae ise sig 2+ Ropi- C Rotate Bighs )"- > TA wiate the bils from Msp >Lse > symox is ROR destination, > Ey 4a Ms 'oo\ om oO Sy PSs ne RCL (Rotate ef using catayy > Ty wlate the Li From Lays Mince Las > symiox is REL DeSNAOn i > Gyr Rev l23nh = 2Mbat ‘ 2 uf ee (roigte Bight YSing Corey): > sy Rolake The BH fm Msg —Lsg scr PSs RCR Destination > Syntox 8 > Ege RCR \a3 KR ‘ rg one an we : M&B 000) 010 O91) ‘OL0O ye 8 PI SSIS Ay SSP SS fen r a oool |; oro Ae rye) “ Bh; * PY Ce Ssoy on: _& Pagtesso¥ mpsiautons 2 the Ingavnciion which rectly efher Flag reQeister 5 Catiey The paocessoy Gontaol inshyuckon. g HuSTC C SeT Canaay Fog = Cre _C Compbment Caray Fag: cle ( Ceny carsry Frag). 3 4 STD ( Set divettion fag. F erp cueas disetton fag). 6 STI (set Wrerup Fiagy, % CLI ( Geax inkeramt fing >, + % Banch insbeuckon '- 2 these inshucion Teansfey, contyel ty the, S2bvk'Ne + some Speufy New Odasess: > consils of ot \ unconeiiona) Baanth instwution > Conaitonal Baanch ingksveon. ~% unconditional Baanch .~ > without checrhg any Conaton “Ap oansfex Comal | caw the new addvess: tb NEAR CALL’) if ‘ 2 FAR CALL NEAR CALL‘ "e 4 > TH is also Called intaa Segment: > when the imesavre OCcUTS AP Seng ACensioledgement “Sy 7 . which decrement by sexing vp gasses: fo the stack. which een slack pomer *3 > * Par CALLS > at is caved WCE Segment when Farcare i exert Wp ve Care Semen Addwess + TP addvegs. to the SHO Uden 3 NEAR REV is used! to Aansfor — exectohon Lyom Aub TINE Ay | MAN program. . (es wmen near per oCcuEns i pop rp address fom the SlacH. A yCVeMeMd Slack PAMCI by 72’ 4 FAR RET! >a pop code Segmen ana 7? cadavers from. the Slack by Incyementing ponies by 9 ® conaiavonay B20Nch'- codition Sap addaess jo the Spesfied valve. 7 By cheeving Ye be Be] az Covmp iP equa | sump if zex0) » 3h] swer ( ump if greater | sump 1F Not equal oy lesser) + SA ( Dormp if Above? , scxz Lsump if Comes Begist ev ts zew) “oe sp [snr (sump iF Faatty | sump af Odd Podra) 30 ( sun iF aehow) * ot sp (oom if is BH) oe Te (aump ie COBY) ao, _ shift on ' : feat 1 sae Cshity vet) > x1 shigys “BHs Tourn oe Nye Lop te maa ond replace LSS, ba ith gy pestinavon MB > 1 2. SAR (Shi) Pathemere pay sax shifas Bike Shor MB 42 LAB and deplace Netw with ot MsR bi _ : > Gynar is SAR Desknakon. s ysGan (a MB ovaq gray Ove oll) S 33 Winn im | ‘ Vy vin “| -~" tatal a 3 SUR Cshity Bight), ‘ana BePtate MQ 3m sktrs Bhs fom MSR te ISB Ba wih Oe ; > s 4s syr_ Destination. a a! * log: cat “InstwUChon :- instwaion —Cons': sis of AND, OR NOT OM X-OR > logicar y pwn: ‘ : aah wets VF 5 xt is user for Pertssming AnD operahny both inpurs ase sy, olheswise T+ Pons: = . fx > Syrrax is pwn destinavon, SOULE 6 O03 u" +36 > Br Mov Ay, 328M cgi AND Ay/ 56238, us 0 Col! 9010 1000 * cate S£22 y101m1to O01 000!" Vr oofoors str Opee Ts yooh 2 fe > u2208 % Rr “> 4 pelvan “1” iP any one of We’ ingur is “17 oherwise ® S Syne 38 OR sestinaton, Source. > Br Mov Ay, H326H fst OR Ax, $6234 : o2: tuga3. 010. ON 0010 yo ono 9010 001 5623 0!0! oro O1Vy | covelyore” BT] PHY] covey sy 53284

You might also like