This should help withe the overwritting error
http://www.picbasic.co.uk/forum/showthread.php?t=543

the other two I would say are something from an ASM program. Post your code show we can give more help.