> > 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 But you can see the disassembly of the PAGESEL in MPLAB, eg "pagesel some_page" would be something like BSF PCLATH, 0x3 Everything breaks down to code -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist