At 07:18 PM 2/18/2012, IVP wrote: >eg the old way was > >movlw 0x55 >tris portb > >is now deprecated to > >movlw 0x55 >movwf trisb One huge difference, though, is this: the 'tris' instruction works=20 properly no matter how the RP0 / RP1 bits are set. In other words, your second example (above) will NOT work if the RAM=20 page bits are not correctly set. The 'tris' instruction works all=20 the time, every time. Same for the 'option' instruction - it works properly regardless of=20 the RAM page bit settings. For those reasons, my legacy code still uses those instructions. The=20 'option' instruction saves several cycles, which was useful in some=20 ISR routines. dwayne --=20 Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .