[go: up one dir, main page]

0% found this document useful (0 votes)
191 views81 pages

Mic Solved Manual 1

Uploaded by

Barik Pradeep
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)
191 views81 pages

Mic Solved Manual 1

Uploaded by

Barik Pradeep
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/ 81
COMPUTER GROU STER - IV] DIPLOMA IN ENGINEERING AND TECHNOLOGY A LABORATORY MANUAL oe _ MICROPROCE Scanned with CamScanner Practical No. 1: Practical Significance 8086 was the first 164 chip. Microprocessors are tasks, ranging from general computing to real time moni students will be able to identify the various pins and their f 1 Relevant Program Outcomes (POs) POI- Basic knowledge PO2- Discipline knowledge PO10- Life-long leaming ye it Competency and roca “Develop assembly la rogram using 8086 ‘This practical is ex develop the following skills 1. Identify Pe of given pins. 2. Ngati ithe Course Outcome(s) rnalyze the functional block diagram of 8086. Practical Outcomes ‘a, Identify the various pins of the given, microprocessor. - Relevant Affective Domain related Outeomes a, Follow precautionary a 1: Identify the various pins of the 8086 microprocessor ‘It microprocessor available in 40-pin DIP (Dual Inline Package) Applicable to a wide range of information iction of pins in maximum and minimum mode. canr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner Tools and Practical No, 2: Use Assembly language Programming Fuetion, Practical Significance Assembly language i used to write program it the ae ‘Tey. ie br’ ni form of operations i.e. for addition add and oe te ica ‘memory location, In operating system, s¥s and for debuaging “ef assembly language using tots like asgemlt, Tinker red for ui te Hence, students wil be able to a Yip, Se This practical is expected to develop the following skills 1. Use editor to write asembly language program flename.asm file 2. Use assembler and linker to create filename.exe file 3. Use debugger in single step mode to locate/trce the errors and correcting errors IV Relevant Course Outcome(s) 4. Use assembly language programming tools. asa pia Scanned with CamScanner aed, then ype asm lena as on Xl press Enter Key t i ian £9 to reat lename oh file Type slink flename.obj or ting Hef lnc fenan a ink filename on command prompt and press Enter Key g F nally. type debug filename.exe or td filename.exe on the command prompt and ares Enter Key to debug your program stp by sep h, Observe the contents of registers, ‘memory location used geek of flags. ut Re ‘ces used (Additioy aw ReMinedoua tion ATARI MODI, &... Echiinr,, thn. Dpto ge” XII Observations be) 1) Observe and ee of Register using debugger TD or Debug xy Table 1: Contents of Registers Registers Flag Register il Purpose | AX | e000 Carry Flag. oe registers BX oo00 Zero Flag, Zz lo CX | wooo Sign Flag si Spgs Dx [ooeo | OverflowFlg | OF | o Index Register [Sl_| Boo0.) ° DI | e000 < BP | e000 A ‘SP 0. Ds ba anr Scanned with CamScanner Eames — Se ae came nh —— y ome bem —=—— ~ ot Aonuma ene Scanned with CamScanr Scanned with CamScanner r 7 “ OM Micrpeess No.3: Writean assembly language program to pep Practical NO" snd subtraction of two 8 and 16-bit numbers "™ \ tial Si 1 TTghlevel language programming, the mathematica subiracton (-) can be used to perform arth Tanguage the mnemonics are used to perform ari addition, SUB/SBB for subtraction, In operate’ system, system device drivers, memory management Ae 'S are normally wnittes language where addition and subtr cio W reauited. Hence, student use mnemonics of the inact s sembly language program Malan: regan OR @EOy Por facta PO 2: Discipline kpWledge PO3- and practice PO. ing tools S, mney and Skills, { <> “Develop assembly language program u ing 8086" sign fo ad tion. Howey tion 6 Operation such Ai a This practical is expected to develop the following skill J Pas eit to create assembly language rogram ie asm fie | 2. Use assembler and linker to create exe file ! > tee debuge in sogle sep mae wo loatenace the enor ang : coming errors IV Relevant Course Outcome(s) = ‘Write assembly language program forgiven problem, Practical Outcomes Write an Assembly Language b. ‘Write an Assembly v t Affective Domain Related Outcomes - & Follow precautionary measures, = Scanned with CamScanner lala CH /=|a)a\5\\«\9| 2 Ohare ee cous of nem Jct Sree Digs teen etpepa Scanned with CamScanr Scanned with CamScanner Fda noone in ad seeied_ovenbol gubsbach Secoed 4 fea Scanned with CamScanr Scanned with CamScanner sonar ) bse and wie Soe TD Se SS omy a Seen promis ate: heat herein Scanned with CamScanr Scanned with CamScanner Soa ek sre one age eg te cm A mae ea Mov Ato» 8 AL io 92 Scanned with CamScanr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner >" J ~ can ALP to multiply (vo given 8 and 16 Dit unsigng4 and signed numbers. nificance -al sign for mul 1 Fi gage pring te mahal in Fr oan Inia eng antec operation. However, in assembly language the mnemy contin mrarm arithmetic operation such MUL for u ultiplication nt ed multiplication. In operating system, gram Such as Yee iw management modules are-not rig ein in assembly lang ave Ton tod ssn i require Henge wil be ale to axe ge Wernction for unsigned and IMUL = for signed numbers in omni language program. " " for, Lape ins 8 ; pie To, Discipline fara This practical is expected to develop the following skills 1. Use editor to create assembly language program filename.asm fle 2, Useassembler and linker to create flename.exe file ME esa lesareperon using 8086” Scanned with CamScanner eo = tt gee + Emer edd Sogeeggee til es pautey ee TI sankoy si senal_an ee er eee tet: Comte Scanned with CamScanr Scanned with CamScanner \ A ig maeeaty | nly ES MUDD ely a pane etsy a S See, stlami\ dy = + cade = & ON A man da Scanned with CamScanr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner cot eee Tene mtb Te in he So an wan oN Scanned with CamScanr Scanned with CamScanner esc HOA eg et aout. £0... PH oe Sar Pe Tanase NO is = = te gh 0 ims il 14 _.Yn2aneg “20 i eee oo : el eu on. sat Peeeeareet Flowing de ite ~ 2 sae pve MUL nd IMU ss (yc fo wes) doy —TMOL Talat Scanned with CamScanr Scanned with CamScanner fer operation ae! No & Write am ALP to perform block tran sagnificance Ft eyetem. cystem programe such as vides device aa a Program Cetcome (Om 3 $i pcr tm XQ 15 Expres and rie sow IE Engineer nk rte A campetencs and ‘2 wsing 9086" ' Scanned with CamScanner eo \ one “to parfore wlock ttremster carter tvithart FH ypag they instruction Alqocithen 3 \ grep 1 i+ Inibalése chats gegment a \ Inittal de dodo aunts . grep 3 t= tnitialtte_ —reeen fy prot Pot 1 sovtte, andl destination Practical No, 13: Write an ALP to count odd an bers ing ractical Significance | : ven such as odd or even p, Mos gy fete, tt casa ‘numbers in array using assembly language mens, se II Relevant Program Outcomes (POs) PO 1. Basic knowledge: PO 2. Discipline knowledge Oo an PO 4- Engineering tools I Competency and “Develop age program using 8086" ‘This hi to develop the following skills. 1 to create assembly language program filename.asm file. ‘assembler and linker to create filename.exe file. A Meratdser a euiias So TELS ds eon ok ; Ww cates ue . Se IV Relevant Course Outcome(s) P 4. Develop assembly language program using assembler. V Practical Outcomes ‘& Write an ALP to check a given number is ODD or EVEN. 7 Write an ALP to count ODD and/or EVEN numbers in array, tame anr Scanned with CamScanner Aim ed ee ct oR Scanned with CamScanr Scanned with CamScanner : i AL Scanned with CamScanr Scanned with CamScanner Results (Output of Program) (Note: Write an Output of program assigned by teacher) (Use blank space provided for answers or attach more pages if'needed) 1. Write an ALP to count odd as well as even numbers in array of 10 numbers. 2, Write an ALP to add the all odd numbers in array of 10 numbers. j “ Janes Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner Microprocessor | Practical No. 14: Write an ALP to count positive and/or negative number, in array 1 Practical Significance ‘The signed hexadecimal number is denoted in second complement format, The significant bit (MSB) of any signed hexadecimal numbeg. represent sign of number MSB of signed hexadecimal number is 0, then sunk Positive and if MB op signed hexadecimal number is 1, the number wilk8 Pegative. Hence, students wat be able to check or count positive and ents amber in aay using assy language program, 11 Relevant Program Outcomes os PO |. Basic knowledge, PO 2- Discipline PO3-Ey tice PO4- ai practice m and Skills assembly language program using 8086” aM his practical is expected to develop the following skills. foie eel 2. Use assembler and linker to create filename exe file, _ 3. Use debugger in single step mode to locate/trace the and cerors. eros and coreting te IV Relevant Course Outcome(s) 4. Develop assembly language program using assembler. Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner Scanned with CamScanr Scanned with CamScanner WW FFOBTAM Code with comm, fated + F oa ents, y__ Results (Output of Program) (we > Practical related Questions ¢ Note: Below given are few ox for reference. Teachers must design more such questions to we ‘achievement of identified CO. ee 1. Write the flag H¥ used to check whether the mumber is ‘Negative. aS ann Scanned with CamScanner a pedena tb. 2 syste lo ald tol ant eh

”! BX | ood a Zero Flag gi Lt fos @ano_| 0000 ‘Sign Flag, SF_|o | DX_[ 00 | ened ‘Overflow Flag oF o St_| go10 | poss Parity $M DI_| meno | aaae | Adlets Cary Flas | AL (0 BP 2.900 | 6600 |W Viterrupt Flag 10 SP_| 9060 Y | mgdoch, » “Direction Flas I DS 485 B a ES [tad ‘ss Fetat cs GRP D P D000 nr Scanned with CamScanner “SECRET Sa eee Te aeikcaeeaiat, “SR ee te gens ec naa Nn Fe infant he The tnd ah. acme ar a (= Nek rc ve es oc pgm) | MAU 8 pete Sida Scanned with CamScanr Scanned with CamScanner

You might also like