How about something like this? MOVF OUTPUT,W ANDLW (1< wrote: > Hi group, > > Using the 16F685 i want to set two bits on PORTC using these lines: > > btfsc OUTPUT, OUT1A ; Is bit set so set it to 1 in > portC > bsf PORTC, OUT1A > btfss OUTPUT, OUT1A ; else if not reset it to 0 > bcf PORTC, OUT1A > btfsc OUTPUT, OUT1B > bsf PORTC, OUT1B > btfss OUTPUT, OUT1B > bcf PORTC, OUT1B > > But could this be done easier and if so how? > > Regards > > Harry > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.mcuhobby.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist