0% found this document useful (0 votes)
37 views17 pages

Mic Paper Solution 22

Solution

Uploaded by

seemakasture75
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)
37 views17 pages

Mic Paper Solution 22

Solution

Uploaded by

seemakasture75
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/ 17
Mode answer sublecrcode: [~~ zaais 1) sper the pay decion ot Maret State Government teaching Egin/Marat and gu Eagh o [sm Ramer Ning No|@ Scheme T ‘teat any EINE of he folowing TM ‘| Draw the abeed format of S086 ag ester 2M a Cone age Nos 137 1] Satay io os betwica TEST and AND asc aM aw Ta ° lest “AND =o THis pally AND ie | Ths aac gally AND ie EST aE SEARD BL, CL There eno aed any, | Tere sve BL regi 3 Sie te tn oo a eT IM Aenber The asteblr sot coe sserly guage ween bye or propa aoa acne cog forma . Sac nine epee] Ape nper oat ©) | Wiican ALF a0 baum. aM age No:2 137 ‘ii uineasra sareno4RD OF TCE EDUCATION ke dat "2M soy bb sat albl Define immediate addressing mode with suitable example 2M ‘elf | Deion TN Tn naracion which Bh sped a nara 1° | entering msc inet cals edie ein ne | | Slate te wse OF DAA insiruction in BCD win. 2M | from ater BCD alton is pertormed lt works only on AL reir 2M tent any THREE, ofthe Yllowing DM ‘example Aa | Dretves wel Tor procedre PROC dretve: The PROC dctive sed Dacinion 2 cae Aer htm FAR NEAR pe et oe cae ENDP Dirstve: This dcstive wed along wth he ae fd procedure to inde the end of procedure wo th ssombir, The PROC snd ENDP dct are Example age No:3 137 i For Example 1 Waite he faction of falling pins af 886 aM Bue iy ALE a] BE BE wands Tor Bik FiGH EOI WTA aR ae | — Ea * indict he rater of data sing data bus D-DIS. Ts gal slow | fancton fk ‘ring he ist look cyl, teenie te active. i) ALE: ALE ans for adress Lach Enables adres an data us are i) READY: tis used os akaoslegemen from slower HO dvi of js) RESET: Ts pia eis the microprocessor wo termine is present sti nme An | 1. Di ~The Di directv wed deve e BYTE ype wrable~ ABYTE® | Each wsenblor Nasal DB 104 rk age No:4 137 iit eet een ee 2. DW~ The DW directive is used to declare a WORD type stable ~ A WORD ‘occupies 1 its or BYTE), Declanton examples: 32 bits =2 Word's or 4 BYTE if Dslr exampis ord DW 12345678 4, EQU- This sued to declare ymin to which some comtan values Nom €QU 100 5. SEGMENT: ts wed tine the star ofa logical segments the mate ven othe segmemt, Exanple: the code segment sad tise the semble the st of lel segment. "name we give the procedure Afr the red the en NEAR aad FAR is sed pei the procedure ‘named SMART-DIVIDE and els the assembler thatthe procedure i a TDs DAS rtracton wih wale cape a ‘An DAS: Dovina Adjust air Subrastion’ ~The watton conve the eso ofthe |Description 2 ‘he vale 9, this instruction wil sukract 0 tan the Kower nibble of te AL. the Example 2 than value 8 i subracts 60H fom te AL. This instruction modifies the CF, AF. PF folowing 3 ample age No: 137 iit uineasra sareno4RD OF TCE EDUCATION OA Banas AL.sH :ALe2F=(AL)~ (BH) ns AL © 20(05F0,F-6=9) toot any THREE ofthe following DM ‘| Deseibe memory segmentation In 8086 with alable agra. a ae — Dagan . is Explain? sezmcns, Bch segments GIKB in size and adres by pe ofthe segment eter, > The numberof aves ins in 886 i 20, 8086 BIU wll yen 2b ares sora acces one ofthe IMB memory lcatons > “The foursegmont roger actully conan the upper L6 bits of he starting ‘orking ht stn tine tien wl always be changing. hw otf aed 15) Write an ALP to mally two 16 i saved numbers aM age No:6 137 ‘i euro or ‘Welt an ALP o count od number inthe aray of 10 numbers Motel Sa oma [si re jmp aes a) | WHica MACRO perm EDA DyIonNaNMonotuniged ————SC~YSCMC*) ‘ii Sedans soe erst umber: aM Dist macro 90 02 run dw 22208 ents ad ‘Deseibe how 20 it Phyial address generate in 8086 microprocessor aM aw Formation of «physi address: Sognent epsom any 16# dia wish Bako ules becomes 20 aldess.Aay aseptic ord reper cary 16 bit oe, Ort adres add ino 20-bRoe adress which nally forms 20 py! M ‘i et (OFFSET VALUE Example 1) Write an ALP to fod largest mamber in the aay. aM a eaM ‘i et Copa) Mov alfa snaup ‘Write an ALP count number of in bit mumber aM MOV BX,NUM oad number in BX UP:RORBX.1 ote number by 1 bright <@)_ Write an ALP to subtract tvo BED number using procedure, sede An | WRecarave procedure iit eet een ee ‘allo be gonerated fom wiinthe prosedres gin and ain, rocedres2M ‘The recursive proce res keep on eect nti the termination cme The ecursive prosedne i er efetive to we na to npn bt they tke 2 Recenrant peur: |nsome siuaton it my tagpe that Procedure calle Som sain progam ere? ical from procedure And procedkrel is tin called rom pode tution program execution flow ee nti the procedure, Tse pes of provedies are cil entrant proces. veo losing ow ‘tent any THEO ofthe fllowinge DM Page No: 2 117 iit Sedans soe erst @)_ ] a Cake the phsleal ares ou (0) $2008 and IP = DEDION (i) SS = FFOOH and SP = 012391 (iy DS 1HFOOH ana BX= LADUE for MOV AX, 8X) ) Physical adress = CS X 10H IP “k's 1200H X 10H + DEOOH 1FEO0H = FFRWOH «01234 =F i) Physica adress = DS X 108 BX = FA00H = 1A0DH 1 | Describe how an assembly language program i developed and debugging om “an | Assembly langwnge development ook Ea * evelopcat isa program which helps to contre! assembly lang ‘ewcoson asm in ight forma oth theese wil ral to machine Assembler va program hat trans asorbly langage program tothe comet inary code. I alo generates the file allo 3 bet ie wth extension I also Program Itcombbe, i requested, more thn one seperated wssemblad modules ino one ekecuble node sich (we or more assem programm or an asey Page No: 33 [17 iit eet een ee State the adresting mode of folowing instructions: or () MOvAK, 450i i) ADD BX, Deon (ii) Daa. tis) MOVAX.ISI) () MovAx. EN (6) SUBAX, [BX St 804) aa @) NOWAX, SSGH ——— IMMEDIATE ADDRESSING MODE * {GADD AX, [20001] ~——- DIRECT ADDRESSING MODE a Gi) DAA IMPLIED ADDRESSING MODE. ee (is) MOVAX, [SI] —— INDEXED ADDRESSING MODE — (©) MOV AX BX ——-— REGISTER ADDRESSING MODE (69) SUB AX. (BXSI/ 8011] — BASE RELATIVE INDEX ADDRESSING MODE ‘itempr any TIVO ofthe Towing: DM 1) | Deseibe how sting instructions are wed to compare two ings wih om suitable example, SI soma: Explanation of sng compare CMPS destiation, source inaction 4 ‘CMPSW destination, source aa Operation: Flags affected <-- DSASH-ES {D1 a 1k ompares hte or word in one rng with bye oF word inant string, St hoki [DF-0 or 10 atoicrment rato detent pine afer comparing one bye Won Page No: [17 i (CMPS m6, nt ‘essa fags scoring. ‘caesw sess ES: DL at sets the tats lags Compares wordt ade BSE with dose ES{E)DL an sets the st dress E5{E)DL ad sets the tus Compares words aress SE) kh dens ES (EDL and sets the tus MOV AL, S8H 1) Write an insractin to perform following operations: on (G) Signed division of AL by BL (i) Move 4001 to DS regter (6) Shit the content of BX register to right 3 ines (8) Lead SS with FFOOH, iw TD Maipy BU y B (2) Signed division of AL by BL ww aL (3) Move 00H e Ds MOV DS, 40011 (Rau Mov cL. ‘i euro or (6) Shine coment of BX register tight 3 times (Loa $8 wih FOI MOV AX, FFUGH “We an ALP to concatenate ve strings START: ASSUME CS: CODE, DSDATA i

You might also like