|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ä |
Hardware
interrupts are used to handle
|
|
|
|
communication
to/from peripheral devices
|
|
|
ä |
Hardware
interrupt occurs when an external
|
|
|
device
sends a signal to the 8088’s interrupt
|
|
|
|
request
line along with an interrupt number n on
|
|
|
|
the
8088 data lines. The 8088 then:
|
|
|
|
ä |
1.
Stops whatever is being done
|
|
|
|
ä |
2.
Jumps to a subroutine n to handle the data going
|
|
|
to/from
the device
|
|
|
|
ä |
3.
Returns to whatever was being done
|
|
|
ä |
Software
interrupts
|
|
|
|
ä |
Can
be used to test the implementation of the interrupt
|
|
|
handling
routines
|
|
|
ä |
Interrupt
table approach is useful because
|
|
|
|
ä |
Indirection
given by the interrupt vector means we
|
|
|
only
need to specify the address of the routine in the
|
|
|
vector,
can reference the routine using n
|
|
|
|
ä |
Can
lead to problems if 2 devices expect to use same n
|