> You can call between pages, but in that case you must always set PCLATH > before the call. I suggest you also restore PCLATH to the current page > after the subroutine returns. If you don't you will have to set PCLATH > before every local CALL and GOTO. I've got macros that make this easy. > Check out the GCALL macro in STD.INS.ASPIC at http://www.embedinc.com/pic. > Indeed you have there very valuable information! thank you a LOT for the info! I couldnt find the PAGESEL macro, though... Correct me if i am wrong please. Thanks ********************************************************* Antonio Sergio Sena CT2GPW asena@bigfoot.com + 44.785.5917270 + 44.131.4664365 BEng Electrical & Electronic Engineering Heriot-Watt University - Edinburgh Homepage: www.qsl.net/ct2gpw ********************************************************* Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.