ADCON0 = 0 and CM1CON0.3 = 0 should set all pins on the 12F510 to digital IO.