Microprocessor Exam

download Microprocessor Exam

of 2

Transcript of Microprocessor Exam

  • 8/12/2019 Microprocessor Exam

    1/2

    Ministry of Higher Education

    The higher institute for Engineering andTechnology

    Department of Computer Engineering

    Course: Introduction to MicroprocessorCode: CE413

    Academic Year: 2013/2014

    Semester: First termYear: 3

    rd

    Time 3 hours

    1

    -Answer all questions -The exam is two pages

    -All numbers are represented in Hexadecimal -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 bitsii) In 8088 microprocessor system the width of the address bus is --------- bitsiii) In 8086 microprocessor system the width of the registers is --------- bitsiv) 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 Column B

    1- Isolated I/O2- Memory mapped I/O3- IN AL,314- IN AL,DX5- IN AX,316- Interrupt7- RAM8- ROM9- Data bus10-Address bus

    A. May be activated in the case of power failureB. Variable address instruction. Data width: 16 bitsC. Use the instructions IN and OUTD. Data is not affected by power disconnectE. Fixed address instruction. Data width: 16 bitsF. NEVER activated in the case of power failureG. Fixed address instruction. Data width: 8 bitsH. Variable address instruction. Data width: 8 bitsI. BidirectionalJ. Used for temporary dataK. Portion of the memory is dedicated for a special taskL. 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

  • 8/12/2019 Microprocessor Exam

    2/2

    Ministry of Higher Education

    The higher institute for Engineering andTechnology

    Department of Computer Engineering

    Course: Introduction to MicroprocessorCode: CE413

    Academic Year: 2013/2014

    Semester: First termYear: 3

    rd

    Time 3 hours

    2

    2) State which of the following addresses may be a segment ending address and which may not

    a) 3A1F3 b) 11F c) B123F d) 4B12FFor 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 binaryii- From the binary representation find the opcode of MOV instructioniii-Find the value of the (directionwidthMODREGR/M )iv-Write the complete instructionv- Invert the width bit and then write the new instruction

    You can use fig. 1 and fig. 2

    Fig 1Fig. 2