> > The overall code seemed simpler the way I posted it. > > It was not. > > > and I thought that would be more useful in > > finding the problem. > > It was not, it just got harder to read. > If you say "GPIO", everyone knows what you are saying. 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 Or is there a better way of doing it when setting multiple flags? Thanks, Matt -- Matt N. Marsh Email: matt@mattmarsh.net Yahoo: marshmn Web: http://www.mattmarsh.net/ Jabber: mattmarsh@jabber.org MSN: matt@mattmarsh.net ICQ: 250467363 AIM: MattMarshUK -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.