Im at a dead end...

PORTA and PORTB are complete 8-bit registers, handling multiple ports.
I suppose you are interested in reading only two specific pins, so you have to look into reading those specific bits.