Jinx wrote: > The address program flow returns to isn't random. It returns to > an 00xx address instead of an 01xx address. Doesn't matter > what the high byte address of the bitnum routine is, it's always > set to 00 by the addwf pcl That's exactly the symptom you expect if PCLATH is not set correctly. In this case it is set to 0, but you are expecting it to be 1. Again, save yourself the trouble and do the PCLATH/PCLATU math unless this is really code or speed critical. ***************************************************************** 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