Richard Zinn wrote: > I have been having a problem where my program resets itself at random > times in my code, Did you remember about the watchdog timer? > in one routine when I try and modify the PCL (program counter > right?) to make it jump forward in the code a few lines, it jumps to > a random place in code far from what was intended. Sounds like PCLATH is not set right. > So basically, do > you see any memory problems in this section of code, especially > around where you see the cblock? Huh? What's CBLOCK got to do with program memory addresses. > I don't include the code where the problem > actually occurs Duh! > I am also pretty certain that my > problem lies in this section here. Let's review this. You have bug in your code. You are unable to find it. Therefore whatever methods and assumptions you are making may well be wrong. Now, you're assertion of the bug's location is relevant why? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics