0% found this document useful (0 votes)
18 views29 pages

Parth Mic QB 2

The document discusses various assembly language instructions and their functionalities, including bit manipulation operations such as AND, OR, and XOR. It also covers the use of macros versus procedures, highlighting their differences in execution and object code generation. Additionally, it provides examples of specific instructions and their applications in programming.

Uploaded by

Anjali Sable
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
18 views29 pages

Parth Mic QB 2

The document discusses various assembly language instructions and their functionalities, including bit manipulation operations such as AND, OR, and XOR. It also covers the use of macros versus procedures, highlighting their differences in execution and object code generation. Additionally, it provides examples of specific instructions and their applications in programming.

Uploaded by

Anjali Sable
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 29
(tt TE Quustien Bank Chopkee 3 : Tnattuction ser oF 9086 2 morks ar eo inghwuckions, pee). bacbemnapeel a8 Be ae Bo She tee7 i AND Q This ingteucion logically ANDS ‘Thle inglertevion Logica te Sauxce With desnotion but — ANDs geukce Ui dashing is He xesulk is not stored ond the result iS Story onyuwhexs- in deskinakion i @ Veed oly for leling usllnout Used wrain yu wat wodilyina bite - to _modily destinabion GH] Stowe We ure of STC 2 CMC inguuoiona of (oi =) © sic: ‘ye el? excavnple | Set the Cabhy Plo | This _inshwcien is yhed to got Coxy Fim | Cred 3 t 13 _@ cme complement at This ‘insteuction is tyed 49. “tomplern ot Hit ag. > . ee | @ scanned with OKEN Scanner of Stowe He ewe odour = bit maripulohon of FOR Bit manipulation \nsluctions NOT: Used 40 Invest aoth bit of byle ax SANDS Used Sox AND operotion of cock _byle | | word _vshh casnsapon ding bie 1 OR: Used 40 perfosm a bit wise OR opexsion between two volues: + XOR : Used to pertorm bitwise Exclusive OR CroRD between too valued. oJ Explain re Forlorsing ish chen. KAT: Explor n, Cromgie 2 The XLAT inske ction xaplaceds o byke ie ee AL xigiskee uilin o bye feo Lookup table in mesa On: + This in steuction copies byte from address Pome Bx+Ar\ beck into AL. Bx, offset Toble a, Orn @ scanned with OKEN Scanner mov “bx 67894 XCHG AK, BX QS] Explain He folowing inslewctond of 908g 3) Ca Qp\ain or. > This _ingteuction is used to beanslee contest } foe sub ot procedure. Tyee of caw: t | * Meare CALL - wilhin Some Segmont | ook Cau a “exemple @ scanned with OKEN Scanner oi), List aie exp in Movs Cmove Te copies byte ox ward lecaien in dato = pe to location in expo Segmat. ‘The offset Source im pointad by ST A oftser of destination is —feinled by or. ee LEA 81, savece | LEA pd, dasbinstion — erp ex, 04h — Movsb @ scanned with OKEN Scanner i tye tt Mov Cx, 05% ‘ me kee Mev AL CPR sy Cee LEA /Mov D1, desitnovion _ ise pat: Rep stos8 20m a we 961086 pee a mu Companes o bye oe word in ann oki with a bale oy wart in enor shi holds obfser df Source DT holds offer of ayy E eg: LEA SI, source LEA DL, deinavon Mov CK, oh REP E CMP SB List 3) Explain ony 5; j__Fowe aksob contol ingeachions 8 & . @ scanned with OKEN Scanner a> nor: At +0 ee ot eveason \O pee fevmed euwespt Perc § oecoma We ST Cae ane: Cz oso. =e) pen SS Cut C cteae peeves ho the i =e Sstonsone @ scanned with OKEN Scanner a This ingta con _UncondiH on tos be t conied 9 of execulion 40 the raed Wing on B-4it ) 16-bit displacement. il, ; Fiey, ot of tele by wes insituction. = —_Syrton : IMP label ie Se ae @ Nz / Ine arta @ scanned with OKEN Scanner I orample OD CMPS mw, mB Compares byl ot addaens dS ST wih Wyler ot addeass 69:02 ond seks Ghabus Hag ott ae dingly a asta @ CMPS — mIG, mig = ; : | Companth word a addesis - — _DS:ST with bytes at odds. ES: 07 ane sets stolus Fog accotdingy” = — 6 CMSB : 7 Comparss Syke oF adders DS. ST with bye ah adidas 25:01 ocaectng ty | 7 @® cup sw: Compaxss word at Gddeots OS: S1 wir uGed ak address ES: OT acceatdin gh}: inslencion of G08C microptcces @ scanned with OKEN Scanner @ scanned with OKEN Scanner oq wie ALP te add J ubsttce 40 \6 by wambes Sl aswel “Wei ete ae eg ee f data SS™S~—SSSSSSSSSN rum dw a nranr marry 7 as dw 7 gest th get mov 0%) @ dota may dS) Oe =] mov 0%, huml mov bx, num? add an, bw rth mov xah, ox evo, nem = sub om b% mov Aslan 7 @ scanned with OKEN Scanner emodel small - data atx db 10h, 10h, 30, 40,50, 55m, Con, 1h, Bb 45h count! ord 2 code mov ou, @data mov ds ,an mov 81, of fset orr mov a, onh mou bl ,O mov ol, Lsi} test ood, OL gz net ine bl eu : @ scanned with OKEN Scanner @ scanned with OKEN Scanner @ scanned with OKEN Scanner @ scanned with OKEN Scanner @ scanned with OKEN Scanner @ scanned with OKEN Scanner t —= = - - a - | nee ke you. 2en. sen, ac, Son, Gon, Fon. SOK. aon. a ae 1S asp cod a - cote Sane ; mew ot fser non meu osisas , OaAW @ scanned with OKEN Scanner | atten 4 Flew cnect + 7 ; _ Sie _ = + — - _ Tetebre aor saqgret + Seen Maeeeeree - —Omev as .e~d 7 ——— ay a Lena Sa, 03, Cx = = mew 4, oF RSer muss a ss — — Ai, offear at- - ee, a OAM —— i Tees stew os data Seen spo: “ meyv ok Gsiy - wes - Vine, ad Ine oe - @ scanned with OKEN Scanner mov as .o% mov 8i_, offset st Up . mov ot, [s'] emp eG. Je ert Since lent ine si @ scanned with OKEN Scanner ee | _—s - oe OT ete Pte due cla a BE eget, - AE eae eee = date - z Muemt ae lok , 20h, -30 ,40t , ~ SBN 4 n ab ° e @ scanned with OKEN Scanner cu] Wee ALP 40 count deh / Even qumben im smodeh — gmoth — @ scanned with OKEN Scanner Crapee s Proce aneee Xd MREaS ~ eq Expian Re- Enteonr Zo Recsenive execeacig | sthage on = za —!] = i ee ercceduee = —— = = - a ae epee ee Ee — — fm _=8¥ein _singie eps, of: _ pe ageenn sede ea” ae ee be Shorea b, aie lea us ams ae Gan = oF une. * 7 1 = So esas - Sig Peer tee 1 _ —- ———_. —_{4~— == ___ Sk + ae a __ aa 5. practice t actus Jot Peccoawne t a @ scanned with OKEN Scanner neo A Nese 9 es @ scanned with OKEN Scanner a monks Expiasm Macro se Faw advan tages ~ =>] a Macro te) Smee — Same patiaen xcepected places ahh perform joven = toe aitleres data of “sare Sete type mepestet code. con be tine Seperateny | coten os MACRO. eae sytte 4 @ scanned with OKEN Scanner want t Aree (@ Metto xeducer arnount of xapehive $otng « @ Preytom become mare, Xudoble ond simple. a @_ Execuhon sme | __eoling — peocedunt a ae © Reavees oxeors « N28 Gh Compared to _ GA] Diflererce between Procedure and MACRO. : 2 Procedute MACRO - » exe usec to xnpeat MACRO axe uted fo xapeat large number [group of Smal group of instenctont ingles clions . a ty is _gereraed Object code is guested set Hme macro is catleds Leng of object Bie is maxg MACRO 2 ENDM dixcaive @ scanned with OKEN Scanner @ scanned with OKEN Scanner @ scanned with OKEN Scanner Flew chest = Star -——— per BLES — = - Compose CaeB) Orme — = +} ss > Mute yy eects see ae ee = = = siete 1S Ze ae a ia | Stop — 7 ee esl Gilet MAcRO ™ F - a 2 _pexfoum a2) te ey See oF si a Awe a = | Ensign wees — = eee a Ee eet aus okay —~ sees eas Seze a F : r ae : rs —— =a 7 i @ scanned with OKEN Scanner

You might also like