Despite the different causes of traps, exceptions, and interrupts, they share a common
format for their handling routines. Of course, these interrupt service routines will perform
different activities depending on the source of the invocation, but it is quite possible to
write a single interrupt handling routine that processes traps, exceptions, and hardware
interrupts. This is rarely done, but the structure of the 80x86 interrupt system allows this.
This section will describe the 80x86’s interrupt structure and how to write basic interrupt
service routines for the 80x86 real mode interrupts.