Kevin, In asm you just do a "banksel a" to select the bank that a is in, I tend to use macros for bank selection as banksel can create instructions that are not needed. I would also suggest giving the register a more meaningful name, is a or a_banana ?? Dave Kevin Lineberry wrote: > static byte a; > void MySub() > { > asm( "inc _a,1" ); > } > > How do you select the bank? > BTW to all those who say, look it up - thank you, I got your > message, can you now please not disturb others who might > want to help me (yes - for free, in the internet spirit) > > > --------------------------------- > New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist