help me with the interrupt....

it look to be a rewrite of a part of a program
when a coding problem come trying to make a small program to show it often solve as you see it
you should try to make a small program to show us what's wrong