Well, did you compare your original one with my converted C? And the changes I made on the ISIS circuit?
I inserted the "ADCON1 = 6" in my program which was missing in your program, without which my ISIS refuse to work. I also added resistors to MCLR and RA0 , as I have mentioned earlier, in order to make the simulator work. These addons are not optional.
You could also do single stepping as Ian has told you to and see if your program does work as you expected.
Allen