Download as pdf
Download as pdf
You are on page 1of 7
Micrayvote un NN vl wotleal No ay Write a AER su (UND wnat saved vnvnnn al Nigultioanee Wh high-level Hnwoaue prawammning, the mathematical sige A ised to perfor arithivetio operation. Hawever, in assembly tang fave waedl 10 petTONI AFIHHINELIE ¢ rivers, (NENKNY MANAREMENE HHduteH Ate whore asttiiions anal cu Hin by requires, He Hwatnietion for sinsigied and IMUE tnatinet Hangunge progratn, Hotovant Peagran Quteonves (MO) VO 1 Haale kina todus PO & Discipline knowledge VO Je Taxperinents and practice row wey andl Skits sembly Mannage programe unten SONG” This practical ty expected to develop tive foflowing skit 1. Use extitor to create assem wage program /llen Use assembler to rout ” nl 1, Use debugger in single step mode to logate/trage th Relevant Course Outeone(s) 5 Use instenctions for diff 1 Outeorey an ALP itty & tive Domi Related Outen: Minimum Theoretical Buck MUL source WiHiply Owe given and 16 bit lansigned picdnuot the Athan wiiely MUL, fae canatygrnest rel TAIUL for sind mmuttiptiontion Tn operating ayatens, systems pros ©, students will be nv for signed gumber Nieation and y wu we deviee ainle wp use MUL ‘Operation (a) If source is byte then AX < AL * signed 8 bit source. + (b) If source is word then DX: AX « AX signed 16 bit source. NY SL LE NP Examples IMUL DL Muttiply AL by DL, result in AX. > IMUL BX Muluply AX by BX, result in DX: AX. ‘Example of multiplication of signed byte with signed word. MOV BX, multiplier ‘Load signed word multiplier in BX. MOV AL, multiplicand Load signed byte multiplicand in AL. cBW Convert Byte to Word i.e. extends sign of AL into AH. IMUL BX Word multiplies, result in DX: AX. of ¥ _— VILL Work Situation: a. Faculty will demonstrate the use of assembly language programming tools to write and execute the program. b. Faculty must form a group of two students. ¢. Students group will use the assembly language programming tools to write and ; execute the programs, : xX Resources required (Additional) Instrument Specification | Quantity | Remarks sObject/Software _ — - rae Pe (eM eetsl | 2. | Editey __|ms-per oxi = [oasmn fo Tam _ Tink P: Oebua anip — Maharashtra State Board of Technical Education “the command prompt and press Enter Key to create silenarie fh ‘Type tint flename.obj or link flename on eornmand promt to create filename exe file. : g. Finally, type debug filename.exe or press Enter Key to debug your program step by step. h. Observe the contents of registers, memory location XI Resources used (Additional) D. vol tt0k. XUL Observations Observe and write the contents of Register using ds execution of program. id filename.exe 0” the Table 1: Contents of Registers command prompt and sed and status of f188S- ebugger TD or Debug after the Registers Flag Register After Before AX_| ®Qg09 | 0006 = Carry Flag CF | 3 BX | ga03 0060 Zero Flag ZF \o CX [eoan On6e Sign Flag SF lo | DX__|o000 6000 Overflow Flag OF SI |ooad Oboe Parity Flag PF lo. DI 00d “Ooq0_| Auxiliary Carry Flag | AF lo | BP [Oooo Good Interrupt Flag Fly sp 960 ©O00d Direction Flag DF \o po {U3 he 4san : Sa PS 48 SD SS __ua 8c YsBe UR fe 43 ot Loo DE 0606 Maharashtra State Board nf Taoh.n Segment. 7 assume.C4d Code cold mov. aX...aada Mavi Ae .2.an 1.0.0). WOM dor.dm fectiical Palucalion ‘Seis Sune ean of Tea

You might also like