Uploaded by Ahmed Elsayed

Final-Exam Spring 2017-2018

advertisement
Delta University for Science and Technology
Faculty of Engineering
Communications and Computer Eng. Department
Final Exam
Spring 2017/2018
Course Title: Microprocessor (1)
Course Code: CCE 207
Date: 12/05/2018
Time: 2 hours
Total Marks: 40
Answer all the following questions
Question (1):
(12 Marks)
(a) What is the purpose of the microprocessor in a microprocessor-based computer? (3 Marks)
(b) Draw the architecture of 8086 microprocessor, then explain the function of Execution Unit
(EU) and Bus Interface Unit (BIU).
(6 Marks)
(c) List the three types of Buses found in all computer systems and state their functions. (3 Marks)
Question (2):
(8 Marks)
(a) Suppose that DS=1000H, SS=2000H, BP=1500H, BX=0100, and DI=0200H. Determine
the address accessed by each of the following instructions, assuming real mode operation:
(3 Marks)
(1) MOV AL, [BP+DI]
(2) MOV [DI+100H], EAX
(3) MOV DL, [BX+100H]
(b) Show which JMP instruction assembles (short, near, or far) if the JMP THERE
instruction is stored at memory address 10000H and the address THERE is:
(3 Marks)
(1) 11000H
(2) 0FFFEH
(3) 30000H
(c) Explain the function of PUSH [DI] instruction.
(2 Marks)
Question (3):
(a) Assume that the state of the 8086’s registers and memory is as follows:
(8 Marks)
(4 Marks)
AX= 5555H
SI= 0100H
DS:110H= 00H
BX= 0010H
CX= 0010H
DX= AAAAH
DI= 0200H
DS:100H=0FH
DS:101H= F0H
DS:111H= FFH
DS:210H= AAH
DS:211H= AAH
DS:300H= AAH
What are the results produced in the destination operands after executing the following
instructions?
(1) AND DX, [SI]
(2) OR [BX+DI], AX
(3) XOR AX, [SI+BX]
(4) NOT [0300H]
(b) Develop a short sequence of instructions that add AX, BX, CX, DX, and SP. Save the sum in
the DI register.
(2 Marks)
(c) What do the following MOV instructions accomplish?
(1) MOV AX, BX
(2 Marks)
(2) MOV CX, [SI]
Page 1 of 2
Question (4):
(a) In the figure shown (80286 microprocessor):(4 Marks)
1234-
(6 Marks)
What is the start address of the data segment?
What is the end address of the data segment?
What is the size of the data segment?
Is it a global or local descriptor table?
(b) In the figure shown, the operation of
MOV EDX, [BX + DI-100H] instruction
is to be executed with:
DS = 0110H, BX = 1000H, and DI = 0010H.
What is the value of EDX after the operation is executed?
(2 Marks)
Question (5):
(a) Convert the following codes from
(6 Marks)
machine language to assembly language
(all numbers are in Hexadecimal).
(4 Marks)
(1) 8A5501
(2) 8BEC
(b) Convert
the assembly language
instruction MOV SI, [BX+2] into
machine language.
(2 Marks)
Good Luck
Dr. Tarek M. Hassan
Page 2 of 2
Download
Study collections