> why doesn't the banksel command appear in any datasheet and is it > better to use than BCF/BSF STATUS,RP0? - With BANKSEL you do not need to care which bank the file is in - Your code will be more portable - on a different PIC the file might be located on another bank + on many PICs there are more than 2 banks so RP0 and RP1 need to be maintained instead of only RP0 + on 18F and enhanced 16F there is no RPx but MOVLB instructuin - all of these situations handled by BANKSEL automatically - You may be able to save 1 instruction on each banking using the BCF/BSF STATUS,RPx on PICs with more than 2 banks but then it reduces the maintainability of your source code Tamas On Wed, Jan 28, 2009 at 5:44 AM, 4e fte <4eftefj@gmail.com> wrote: > why doesn't the banksel command appear in any datasheet and is it > better to use than BCF/BSF STATUS,RP0? > > thanks > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Rudonix DoubleSaver http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist