Multiple ISR

I need / want to monitor multiple inputs using state machine triggered by interrupts.
I could build an individual ISR for each input, but I wonder if there is another way.

For example I could modify attachInterrupt to accept the input as an index or have an array of ISR functions.

Any other thoughts?
Thanks
Vaclav

Better to Remain Silent and Be Thought a Fool than to Speak and Remove All Doubt
Accredited to many sources

Before thinking about this at the level of the Arduino IDE, I suggest to spend some time with the data sheets for the mpu of interest and understand how interrupts work on the machine level. In most cases there is a unique jump vector for each hardware interrupt source. Pin change is an important exception.

Great point, time to get serious and get away from "high level" programming.
I need to do some other work at "low level" ( fluorescent display ) and I will do that first.
I can "see" the results on the display if I am doing it right!

Thanks
Vaclav

PS
WInterrupt source gets down to register level, but run into snag - callback cannot have parameter added as is. But it looks promising.

If you are using an AVR. Get a copy of the avr-libc user manual.

http://download.savannah.gnu.org/releases/avr-libc/

If you are using an ARM mcu try and get a copy of the user manual for the C library being used. I don't know which C lib they use.