thanks guys, not that the compiling part is finish, it's time to put it in the 16f877a and test it.
the coding alone is around 6kb already. haha...