Problem interrupt pin change

You do know that ^ is an EXCLUSIVE OR
I can't follow that either.