Vectored interrupts are achieved by assigning each interrupting device a unique code, typically four to eight bits in length.1 When a device interrupts, it sends its unique code over the data bus to the processor, telling the processor which interrupt service routine to execute.
Hamacher, Carl (2002). "INPUT/OUTPUT Organization". Computer Organization (5th ed.). McGraw Hill. p. 214. ISBN 0072320869. 0072320869 ↩