If memory serves me for your chip. It has an internal OSC option. When using the internal then A6 and A7 can be used for I/Os. You are using an external OSC . So your TRIS for this now will only have six bits. PINs 0 through 5.