A porta change interrupt occured! Cool!
But then in the INT handler I need to read the pin that triggered the int.

I could use:

IF (porta.0 == 1) ... (my code here)
IF (porta.1 == 1) ... (my code here)
(for all 6 pins... it will take a lot of space in my PIC memory)


Could I instead use something like:

If porta.0 = 1 then pin = 0
If porta.1 = 1 then ...
(for all 6 pins)

Then:

IF (porta.0(pin) == 1) THEN...

Is this syntax correct?

Isn't there an easier way to check what pin triggered the int? There is an INT flag that tells us there was a change on portA but no info on the pin that triggered the int...