Thanks Scott. Are you saying I should not do btf on the i/o port? Regards, Bob > Well, since you're willing to perform btf operations on an I/O port, then > you could do this: > > btfsc PORTA, RA3 > goto RA3_is_high > > btfsc PORTA, RA2 > goto motorup ; RA3:RA2 = 01 > goto stopmotor ; RA3:RA2 = 00 > > RA3_is_high: > > btfss PORTA, RA2 > goto motordown ; RA3:RA2 = 10 > > ; RA3:RA2 = 11 > > stopmotor: > > Scott > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body