Video solution will be uploaded soon.
Regarding the subroutines, see the following sequence of tasks to be performed:A. Turn on the interrupt facility.B. Service the device whose flag is set.C. Save the contents of processor registers.D. Check which flag is set.E. Restore the contents of processor registers. | Watch the step-by-step video solution for this NIMCET PYQ.