Dario Greggio wrote: > > I guess you need to use PAGESEL > isnt that a macro? im using pic16f877(self programming). the chip will be programming this into itself, so macros wont work. i dont understand how it could work. if you wanted to switch to, say, address 0 of page0, i would need to clrf pclath, then i would need to clrf pcl. wouldnt clearing pclath modify the program counter and before i could move to to address 0. sorry if i didnt describe this very well. -- View this message in context: http://www.nabble.com/subroutine-in-different-page-tf3767182.html#a10652502 Sent from the PIC - [PIC] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist