How is it that you are suposed to read input on a 12f629?

I know it just has the GPIO which is what is making this hard. If it used the normal PORTA I could probably under stand it my self.

I would like to read a switch on I/O 2 and if it is high then make I/O 1 high to light an led.