iugmoh, Why not use 1 interrupt pin with a pullup resistor tied to as many diodes as you have switches. Then have 1 port change interrupt read the switch inputs and give the results? Why make it so complicated? Just a thought......

Dave Purola,
N8NTA