> I am coding the PIC16F877 and my code has grown more than 2K. Now I have > some problems with CALLs and GOTOs instructions when the code is not on Page > 0. I read the "Paging and PCLATH " section on the PlCList archive, but I am > still not sure how to write the code for long call or long goto. The > "sample code" there is in psedocode form. :( Basically, you need to set PCLATH before a global call and restore it after the call. > Is there any codes out there that can do Global Call? Global Goto? Yes, see my GCALL (Global CALL) and GJUMP (Global JUMP) macros and related in STD.INS.ASPIC at http://www.embedinc.com/pic. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu