Its not that G, Mike deselects all the analogues right at the very start:
Code:
org 0x0000
v_reset
clrf INTCON ; global & peripheral IRQs off
banksel ANSELA ; bank
clrf ANSELA ; PORTA analog functions off
clrf ANSELB ; PORTB analog off
clrf ANSELC ; PORTC analog off
clrf ANSELD ; PORTD analog off
clrf ANSELE ; PORTE analog off