It's an older PIC, you need to use the TRIS instruction to set the TRIS register, unlike the newer PICs which give direct access to the TRIS register the same as other SFRs.
Read the data sheet for the 12F508, it clearly states how to set it under the I/O Port section.