which bit is set in a byte?

I read from an MCP23017 with a Mega 2560.

INTFA/INTFB is the interrupt flag register.

INTCAPA/INTCAPB contains the current state / captured values