Microprocessor

You might also like

You are on page 1of 4
Aa Ss duly Aenaigil As ALAN asi NS) Kays all Lal egal jill Qual Ay} chal (EST AE Cpa Lata — apathy yg 0) ll Lala — ervey pi asia ) 2017-2016 cyl ull pall ' de ees | 421 4 aad! sey tall Hal daa Fool Clearly differentiate between address resister indirect with postincrement and predecrement. >. Given that, initially the least significant byte of DO holds $10, AS hold the value $0100 and the ‘memory locations whose addresses are $0100, $0101, $0102 all ccntain the value $01. After ‘execution of tly. following instruction: | | ADD.B Do,(a5)+ What ate the contents of memory locations $0100, $0101 and register AS. Question 2: 2. Draw a block csagram for a bus 5 'ystem with four registers RI, R2, Ri, and R4 and describe how the following w struction is performed: | MOVE R24 Rae R2 b. Draw the stabi: registerand show the function of each bit, | Explain in deiail the register and m emory transfers which would take place in executiny the jollowing insitictions: | i 3SET #2,D4 | ii \DDX.L (42), (45) iii, WAP D4 tn each case, give te effect on the CCR bits. . : ‘After addition of (01111001): and (09000101), what are the velues of the carry and overflow flags in the Question 4: ie \ a. Draw and explain the block diagram of 68000 microprocessor : b. Compare the I Uowing instructions: | ADDO 45,3. and ADD.B #5,D3 ii ADDI ind ADDX iii, NOT and NEG ww. MOVIi;, and MOVEM | v. LEA an! PEA Question 5: | Determine the effect of each one of the following 68000 instructions: CLR DO | MOVE.L D1.10 CLRLL (40)+ - MOVE -(A0). DO - MOVE 20(A06) , DO - MOVEQ.L#SD" , DO - MOVE 21(A1, 40.L) , DO Assume the following, .zitial configuration before each instructions executed. Also, assume all numbe:s in he [Do] = 22224444 : * [Di] = 55556666 “A0] = 00002224 {A1) = 00003333 (002220) = 8888 (002222) = 7777 (002224) = 6666 : (002226) = 5555 | (002228] = AAAA [00556C] = FFFF L Write an 68000 assemb'y language program to compute a Six ‘Where Xi and Yi are si;;ned 16-bit numbers, N= 100. Assume no overflow. AGH 9 pall Laat Aaasight Als PAA Sea ag al gal ell all AY cla (Reis SS ABD yay Late aguatly yg 6H lil) Lala — — Seba, pli Luaia ) 2017-2016 cpl ll plall : SU BL cay yal lial : le 1 4016\12\ 4 aa! syd) Adal dead oe Gal a. Clearly differentiate between address register indirect with postincrement and predecrement. b. Given that, initially the least significant byte of DO holds $10, AS hold the value $0100 and the memory locations whose addresses are $0100, $0101, so1d2 all contain the value $01. After ‘execution of il following instruction: | What are the cv atents of memory locations $0100, $0101 and register A5. : | | ADD.B DO0,(A5)+ 7 | Draw a block ciagram for a bus system with four registers RI, R2, Ri, and R4 and describe how the following w struction is performed: | MOVE R24 Re R2 b. Draw the stabi: registerand show the function of each bit. | tion al Explain in cecil the register and oa transfers which would take place in executing the iollowing inst.ctions: | | i 3SET 42,D4 | ii \DDX.L -(A2), -(A5) ii, SWAP pa | In each case, sve tue effect on the CCR bits. . After addition of (01111001)2 and (09000101)2, what are the values of the carry and oveiflow flags in the CCR? | Question 4: | |: a. Draw and explsin the block diagram of 68000 microprocessor b. Compare the ( Uowing instructions: Determine the eflect ot each one ofthe following 68000 instructions: . -~ CLR Do e + MOVEL Di, 90 ~ CLRL (AQ) MOVE - (Av. , DO MOVE 20(85., DO | - MOVEQ.L, 27, D0 MOVE 21(2) AQ, L), Do El Assume the following initial configuration be hes, fore each instructions executed. Also, assume all numbers in {D0} = 22224844 , D1] = 55556666, {tao} = 00002224, [Al] = 00003333 (002220) = 8883, 002222) = 7777, |to0224]=6666, [002226] = 5555 {00556C] = FEFF : A. Show the addressing mode for the fo Novia: i ADD $00S000,D0 ii. SLR (AL) i ii, AOVEA.L #84002,40 : : iv. CLR ~(A0) ¥. MOVE.W $10(A4,D3.w) : vi. CLR (A0)+ B. What are the fo lowing instructions i MOvEA.W #88000,a0| | i, MOVEMLL D0-D7/A0-A6,-(SP) : i. MOvEOL wSER.D0 | | | Lin $u0486074 PEA $8000 mean:

You might also like