hewlett-packard HP 9835A — 140

140 I/O Handling Priorities Select codes are assigned hardware "priority" levels to control what should be processed when an interrupt service routine is executing and another interrupt is received, or when two or more simultaneous interrupts are received. There are two priority levels - High for select codes 8 to 15 Low for select codes 0 to 7 An interrupt received from a high-priority select code may interrupt a service routine which is select code may not interrupt any other service routine. executing for an interrupt from a low-priority select code.

But an interrupt from a low-priority Interrupt Service Routines and Linkage An interrupt service routine is associated, or "linked", with a select code by the Isr _access to which select code it applies. utility described later. This linkage establishes where the interrupt service routine resides, and An interrupt service routine may be placed anywhere in the ICOM region. The routine typically does one or more of the following - • Talks to the interface (i. e., satisfies or acknowledges the interface's interrupt). Passes data to (or retrieves data from) the rest of the program, when appropriate. • Breaks the linkage, if desired.

The method of talking to the interface depends upon the type of interface. Some devices or applications do not require the passage of data; the acknowledgement of the interrupt is usually the desired effect in such cases. The linkage can be "broken" (or terminated) during an interrupt service routine by executing one of two statements. If the linked select code is high-priority, the statement is -