> ; reset and initialize ports > bsf STATUS, RP0 ; select bank1 > bcf STATUS, RP1 Rikard, you, like picnoob, really should start using banksel banksel trisa will insert the above for you. You'd see this in MPLAB's Program Memory window BSF STATUS, 0x5 BCF STATUS, 0x6 banksel cmcon, etc Unless you're really really short of space there's no reason not to. In all the code I've ever written, and that is one heck of a lot over the years, only once did I ever need to skimp on a bank selection. In a very tight loop with one instruction cycle to spare and could do only bsf or bcf status,rp0. That was in a controlled situation where rp1 and irp didn't change -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist