Input-Pin Abfrage geht mit
SBIS PINA, 0

(Portx ist immer der Output)