Interrupts and how to cope up with them in instruction cycles

Asked By 5 points N/A Posted on -
qa-featured

What is an interrupt in an instruction cycle? How to deal with an interrupt? Also, in what part of the instruction cycle does the processor check for interrupts?

SHARE
Answered By 0 points N/A #183233

Interrupts and how to cope up with them in instruction cycles

qa-featured

The diagram shown below is of an instruction cycle: –





In the instruction cycle, sometimes an error may occur or a warning might be issued called as an interrupt. This happens in the last part of the instruction cycle. The processor checks for interrupts only after the data has been processed. When the interrupt flag=1, the contents of the Memory Address Register are transferred and stored in the stack and the address of the Program Counter is changed to match the address of the interrupt handler routine. As soon as the interrupt is dealt with, the contents of the stack are popped and stored back in the Memory Address Register and address of Program Counter is changed back to that of the next instruction.

Login/Register to Answer

Related Questions