Rochester, 12 oktober 2005. banksel could be considered a preprocessor command, and expands into the appropriate bit set/reset commands so that it switches to the bank that the register (the parameter of the banksel command) is in. The advantage here is that you can move the register to another bank without having to worry about changing all the commands throughout your sourcefile. This is especially useful if you use relocatable code/variables, and you let the assembler decide which bank is used for your variables. The disadvantage of the banksel command is obviously that it will increase the number of instructions, as it will blindly set the bits. Olin has a set of macros that work less blindly, but will need help from the personw writing the code. Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist