I'm using compiler version 2.47, maybe that is the problem. I see melabs updated some RAM issues with this chip. I don't know enough to know if the compiler will pass the code off to the PM assembler correctly but not to MPASM. My code has seemed to work correctly for quite a while, but perhaps I'm not pushing the right buttons to make it break.

Thanks for checking for me Joe.

Anyone else out there with 2.47 who can try to compile the above for me to see if they get the same results or not?

David