0% found this document useful (0 votes)
39 views2 pages

Midterm Exam 2022

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)
39 views2 pages

Midterm Exam 2022

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/ 2
Electrical Engineering 3ro Year Computer and Microprocessor Midterm: ‘Aswan University. Aa Time: 1:40 Hrs grades: 45 Solve the Following Questions: ow ge OU Choose the Right Answer (10 points) mn 4. f BX=1234H AND THE INSTRUCTION “MOV[2400)BX)" were executed, what “would be the contents of memory locations at offsets 2400 and 2401 respectively? a. 34,12 b.12,34 ©.24,00 4.24.01 2. The linking process comes —------ assembling a. After b. Before 3. How many bytes are defined by the following? DATA1 = DW ___ 6 DUP (4 DUP(OFFFFH)) a 6 b. 24 ©. 48 d4 4. is saved in the stack a. cS b.IP ©. SP d. CS and IP 5. The CMP instruction alters the contents of its operands. a. True b. False 6. What are the values of DX and CF after the following? MOV DX,3FA2H ool 1111 1010 0090 MOV CL,7 4407 9001 0001 17497 ROL Dx,CL a. DF11H,O = b. D14FH, 0 ¢.DF41H, 1 d.D11FH, 1 7. The REP instruction can be used with which of the following instructions . MOVSW _b.CMPSB c.LODSB d.SCANB 8. Slis used as an offset into the ----— segment a. Data b.Stack c. Extra d. Code 9. Which register is used as the offset register with Segment register CS | a. SP b.IP ¢. BX d.DS | 10. A(n) jump —---— is within the current code segment a. JNZ b. NEAR c. FAR d.JMP | (10 Points) 1, Explain the functions of the EU and the BIU 2, What is pipelining, and how does it make the CPU execute faster? tad 3 Year Computer und : Microprocessor Midterm Exam 2021/2022 Aswan University ‘Time: 1:40 Hrs grades: 45 3. Explain the difference between .SALL, LAL, .XALL directives 4. Ifan instruction that needs to be fetched is in physical memory location 389F2H and CS=2700H, does the code segment range include it or not? If Not, what value should be assigned to CS if the IP must be 1282H? Indicate whether or not the jump happens in each case = a, MOV CLS b, MOVBH,65H 1) 9107 SUBALAL ©! MOVAL48H O17? 1771 OR AL,BH 1 SHL AL,1 5. ‘SHL ALCL ING TARGET JC TARGET Q3) Answer The Following Questions. (10 Points) 1, Write a program that : a. Clears the screen b. Set the cursor at row 8 and column 14 £. Displays the string * Microprocessor Exam” Write a program that count the number of zeros in a byte 4. Give the Addressing mode of cach of the following a, MOV AX, DS b. MOV BX, 5678H. ¢. MOV AL, [BX] d. MOV AL, [BX+S1+10] ‘Q4) Answer The Following Questions. (15 Points) 1. The following program is meant to set the cursor at position row=14 and col=20 fix the error and write the right answer MOV AH,02 MOV BH,00 MOV DH,14H MOV DL,20H INT 10 2. Using string instructions, write a program that transfers a block of 20 bytes of data from memory location to another one. | 4. Assuming you have a temperature data [+13,-10,+19;+14,-18,-9;+12,-19,+16] write a Program to find the lowest temperature. |

You might also like