Why is the machine status saved during an interrupt call and not during a subroutine call?

What will be an ideal response?


When a subroutine is called, the status word may be changed during the execution of the subroutine. However,
the programmer can save the status word in a subroutine (or across a subroutine call) if he or she wants to.
Interrupts are external and asynchronous. They can occur at any time. Consequently, it is necessary that the
status word be saved automatically when an interrupt occurs.

Computer Science & Information Technology

You might also like to view...

To remove a custom tab stop, CONTROL-click the tab marker on the ruler and then click Remove on the shortcut menu.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Multiple sectors on a disk, when combined, are referred to as a:

A. cluster B. track C. slice D. platter

Computer Science & Information Technology

A pretest loop is also called an exit-controlled loop.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which of the following commands can be used to find the MAC address of a connecting router?

A. arp B. traceroute C. ping D. ping sweep

Computer Science & Information Technology