solarwind wrote: > If I do something like: > > movlw 0x00 > > movwf TRISA > movwf TRISB > movwf TRISC > > is it correct? Given the comments explaining what it's supposed to do, sure. > Or do I need to movlw before every movwf? Your first instruction puts 0 in W, so the question is will the MOVWF instructions change W or not. Go to the data sheet and read the MOVWF description. Report back here on whether it changes W. If your intent is to set the TRISx registers to 0, you can use CLRF. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist