Good catch! Actually the MPLAB help says about pageselw: The linker will generate the appropriate page selecting code. For 12-bit instruction width (PIC10F, some PIC12/PIC16) devices, the appropriate bit set/clear instructions on the STATUS register will be generated. For 14-bit instruction width (most PIC12/PIC16) devices, MOVLW and MOVWF instructions will be generated to modify the PCLATH. If the device contains only one page of program memory, no code will be generated. For PIC18 devices, this command will do nothing as these devices do not use paging. Regards, Tamas On 5/3/07, Dario Greggio wrote: > > Mauricio Giovagnini wrote: > > > AFAIK, PAGESEL uses bcf/bsf. PAGESELW does a MOVWF. > > really? good to know then! > > > -- > Ciao, Dario > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist