• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | Quiz for Sudo GATE 2021 | Question 35

A computer responds to an interrupt request signal by pushing onto a full descending stack the contents of PC and the current PSW (program status word), assume that each one will need one word. It then reads a new PSW from memory from a location given by an interrupt address symbolized by IAD. The first address of the service program is taken from memory at location IAD+1. Note: TR (temporary register could be used). Consider the following statements: I. Sequence of micro-operations for the return from interrupt instruction:
SP ← SP-1
M[SP] ← PC
SP ← SP-1
M[SP] ← PSW
TR ← IAD
PSW ← M[TR]
TR ← TR + 1
PC ← M[TR]
Go to fetch phase. 
II. Sequence of micro-operations for the interrupt cycle:
PSW ← M[SP]
SP ← SP+1
PC ← M[SP]
SP ← SP+1
Which of the following option is correct? Note - This question is multiple select questions (MSQ).

(A)

Statement I is correct.

(B)

Statement II is correct.

(C)

Statement I is not correct.

(D)

Statement II is not correct.

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments