> I've been wondering how to best go about setting multiple flags when > setting up INTCON for example. So, to begin with I was doing: > > movlw b'10100000' ; Enable timer interrupts > movwf INTCON > > I presume that the recommendation is to set the flags individually, > even though it might cost an instruction or two, for the sake of > being easier to read: > > clrf INTCON > bsf INTCON,T0IE > bsf INTCON,GIE Hi. Many (incl me) find the following way of coding to be easy to read and self-documentary : (It should line up using a fixed pitch font...) movlw b'10100000' ; Enable timer interrupts ; 1------- Set GIE ; -0------ Clear PEIE ; --1----- Set T0IE ; ---0---- Clear INTE ; ----0--- Clear GPIE ; -----0-- Clear T0IF ; ------0- Clear INTF ; -------0 Clear GPIF movwf INTCON It's easy to read, and uses fewer instructions then multiple bcf/bsf. Regards, Jan-Erik -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.