Вы находитесь на странице: 1из 2

Ministry of Higher Education The higher institute for Engineering and Technology Department of Computer Engineering Course: Introduction

to Microprocessor Code: CE413 -Answer all questions -All numbers are represented in Hexadecimal

Academic Year: 2013/2014 Semester: First term Year: 3rd Time 3 hours

-The exam is two pages -State all the relations used

Question 1 Complete, choice or answer the question i) The microprocessor is X bits means that the width of the --------- is X bits ii) In 8088 microprocessor system the width of the address bus is --------- bits iii) In 8086 microprocessor system the width of the registers is --------- bits iv) From the following physical addresses, state which addresses can be represented using real mode and which addresses cannot be represented using real mode a) AB21C b) 324B c) 42 d) 632A5C e) 5 v) What are the two types of interrupts? Question 2 Match each sentence in column A with the appropriate one in column B, there are two extra sentences in column B Column A 1- Isolated I/O 2- Memory mapped I/O 3- IN AL,31 4- IN AL,DX 5- IN AX,31 6- Interrupt 7- RAM 8- ROM 9- Data bus 10- Address bus Column B A. May be activated in the case of power failure B. Variable address instruction. Data width: 16 bits C. Use the instructions IN and OUT D. Data is not affected by power disconnect E. Fixed address instruction. Data width: 16 bits F. NEVER activated in the case of power failure G. Fixed address instruction. Data width: 8 bits H. Variable address instruction. Data width: 8 bits I. Bidirectional J. Used for temporary data K. Portion of the memory is dedicated for a special task L. Unidirectional Question 3 1) State which of the following addresses may be a segment starting address and which may not a) 2A2A0 b) 7210F c) 81430 d) B4153 For the starting address(s) find the base and the ending address
1

Ministry of Higher Education The higher institute for Engineering and Technology Department of Computer Engineering Course: Introduction to Microprocessor Code: CE413

Academic Year: 2013/2014 Semester: First term Year: 3rd Time 3 hours

2) State which of the following addresses may be a segment ending address and which may not a) 3A1F3 b) 11F c) B123F d) 4B12F For the ending address(s) find the starting address and the base 3) For the following physical memory address a) 31216 b) C12A4 c) 51624 d) A3454 -Find the smallest value and the largest value may be found in the segment register -Find offset value has to be associated with each one to represent the address Question 4 What is the data addressing mode which describes each of the following (write the number of the sentence and the answer) A. MOV CH,3AH B. MOV [1234H],AX C. MOV CL,[BX+4] D. MOV [BX],CL E. MOV [BX+SI],BP Question 5 C=1 P=0 A=1 Z=0 S=1 O=0 Select the operation(s) from the following which produce(s) this flags set (may be one or more, wrong choice eliminates some correct answers, show your calculations) 1. E3+9D 2. DF+EE 3. 9F+AE 4. 86+88 Question 6 Consider the assembly instruction MOV ... , ... with equivalent machine code 89C1 i- Write the machine code clearly in binary ii- From the binary representation find the opcode of MOV instruction iii- Find the value of the (direction width MOD REG R/M ) iv- Write the complete instruction v- Invert the width bit and then write the new instruction You can use fig. 1 and fig. 2

Fig 1 Fig. 2
2

Вам также может понравиться