Segment 33762: Interrupt Handler

Segment 33762: Interrupt Handler is the ninth segment of the TIS-100.
==Module Information==
The Interrupt Handler Segment acts less as an interrupt handler and more of an interrupt handler selector. There appear to be 4 different kinds of interrupts in the TIS-100. Each interrupt type can send a high (1) signal to the Interrupt Handler Segment one at a time, but never at the same time. The output of the segment indicates which interrupt was raised by its number 1-4 (inclusive). Interrupts come into the Segment via the 4 inputs, IN.1, IN.2, IN.3, and IN.4. There is only 1 output, OUT, which is where the value of the desired interrupt will be provided.
==Gameplay Information==
!!WARNING!! The following section may contain spoilers for the game. Read at your own risk!!!
This is effectively meant to be the ninth puzzle. This time the player will need to detect which of the inputs gives a 1 and translate that into a value from 1 to 4 before pushing the output to the OUT stream.