As discussed in more detail below, when the DLL detector routine detects an event, such as an interrupt or a call to a routine, it passes the trap identifier to the trap dispatcher, which executes the main program trap routine indexed by the trap identifier.