> >What I do is not require subroutines to preserve PCLATH. I have a bunch of > >macros that deal with this and related issues. See STD.INS.ASPIC at > >http://www.embedinc.com/pic. The GCALL (Global CALL) marcro sets PCLATH > >before a call, then restores it to the current page after the return. > > Thanks for the input, Olin. > Where might I find "setpage" and "mypage"? In the same file. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, 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