am using 16f877a but guess what i found the problem

the problem is going to sub routine from sub routine

but other wise it worked probably

thanx man for your attention