You are on page 1of 2

1/21/16

EE334 , EXAM QUESTIONS HW

1- Write an ALP to measure the average speed of a moving car , assume the data input
comes from port A in 8255PPI , located at port number 310 , take 10 samples with 5
seconds between each , if any sample exceeds 120kM/h triggers an interrupt
procedure , that throws a warning signal via port B , outputting the number CB h .
,assume interrupt vector = , use the most compact code possible , & write the ISR
independently . [input device gives speed in kM/h , the clock is at 5 MHz].
2- Draw the timing diagram for the 8086 P executing the instruction
a- MOV AX,[00D8]
b- Add Cx , 4h

3abcd-

List the flags of the 8086 P .


Explain the deference between SHR and , SAR instructions .
Explain the EEPROM & DRAM
Show how to interface 64 KB memory chips into an 8088 P to

abcd-

Explain the concept of Cache memory


Differentiate between the Polling & Interrupt methods in IO .
List the segment directives in assembly language .
List the 8255 Control word register bits and their functions .

4-

5- Choose the most appropriate answer :


a-

The instruction, CMP to compare source and destination operands it performs


a) addition
b) subtraction
c) division
d) multiplication

b-

During comparison operation, the result of comparing or subtraction is stored in


a) memory
b) registers
c) stack
d) no where

c-

In general, the source operand of an instruction can be


a) memory location
b) register
c) immediate data
d) all the above


1/21/16
EE334 , EXAM QUESTIONS HW

d-

The instruction that enables subtraction with borrow is


a) DEC
b) SUB
c) SBB
d) None of the mentioned

e-

. The stack pointer register contains


a) address of the stack segment
b) pointer address of the stack segment
c) offset of address of stack segment
d) data present in the stack segment

f-

PUSH operation
a) decrements SP
b) increments SP
c) decrements SS
d) increments SS

g-

If an interrupt is generated from outside the processor then it is an


a) internal interrupt
b) external interrupt
c) interrupt
d) none of the mentioned

h-

An interrupt breaks the execution of instructions and diverts its execution to


a) Interrupt service routine
b) Counter word register
c) Execution unit
d) control unit

i-

The INTR interrupt may be


a) maskable
b) nonmaskable
c) maskable and nonmaskable
d) none

You might also like