13.07.2015 Views

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part C [15 marks]26. Which technique frees up the CPU by transferring data directly between the I/O deviceand memory: [1]a. Programmed I/Ob. Interruptsc. I/O Channeld. I/O Registerse. I/O Processorf. DMA27. In which technique, does the CPU issue an I/O command, continues to executesubsequent instructions, and is interrupted by the I/O module when the latter hascompleted its work: [1]a. Programmed I/Ob. Interruptsc. I/O Channeld. I/O Registerse. I/O Processorf. DMA28. When an interrupt occurs, arrange the following operations in their order <strong>of</strong> occurrence?[3]a) interrupt service routine executedb) the registers are restored by popping their values <strong>of</strong>f <strong>of</strong> the stackc) the processor identifies the source <strong>of</strong> the interruptd) the program counter and other registers' values are pushed onto the stacke) the address <strong>of</strong> the interrupt service routine is placed in the program counterOrder <strong>of</strong> Occurrence:1. ____c_____2. ____d____3. ____e____4. ____a____5. ____b____PTOPage 15 <strong>of</strong> 16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!