Which of the following is the correct sequence with regard to service routine? A. Save contents of processor registers B. Turn the interrupt facility on C. Service the device whose flag is set D. Check which flag is set E. Restore contents of processor registers Choose the correct answer from the options given below:
A, D, C, E, B
When an interrupt is acknowledged, control passes to the interrupt service routine. Morris Mano (Computer System Architecture) lists the steps the routine performs; the processor state must be preserved first and interrupts re-enabled only after the state has been restored.
Step 1 — Save contents of processor registers (A), so the interrupted program can later resume unchanged.
Step 2 — Check which flag is set (D), to identify the device that requested service.
Step 3 — Service the device whose flag is set (C).
Step 4 — Restore contents of processor registers (E).
Step 5 — Turn the interrupt facility on (B), then return to the interrupted program.
The order is A, D, C, E, B. A, B, C, D, E enables interrupts before servicing and checks flags after servicing; D, B, C, A, E and D, C, B, E, A both start polling flags before saving registers, which would corrupt the interrupted program's state.
A, D, C, E, B option is correct.
A CPU handles interrupt by executing interrupt service subroutine __________.
Suppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynchronously. The processor needs to execute the interrupt service routine (ISR) to serve this interrupt. The following steps (not necessarily in order) are taken by the processor when the interrupt arrives:
(i) The processor saves the content of the program counter.
(ii) The program counter is loaded with the start address of the ISR.
(iii) The processor finishes the present instruction.
Which ONE of the following is the CORRECT sequence of steps?
The register in the 8085A that is used to keep track of the memory address of the next op-code to be run in the program is the-
Disabling an interrupt is known as ______.
Which is not true about an interrupt
Match List-I with List-II
List I | List II | ||
a. | Micro operation | i. | Specify micro operations |
b. | Micro programmed control unit | ii. | Improve CPU utilization |
c. | Interrupts | iii. | Control Memory |
d. | Micro instruction | iv. | Elementary operation performed on data stored in registers |
Choose the correct option from those given below: