There are ASM routines out there for multiplication and division. some PICS (I'm not a pic person so I don't know if yours is one of them) have built in multiplication functions which I think can be used to accelerate division as well? A little bit of research on the net should give you a lot of results.