Hey, would somebody with HI-TECH C try this and see how efficient it is: Fred = RB0 ? 20 : 10; The compiler should be able to generate: > movlw 10 > btfsc RBO > movlw 20 > movwf Fred or: movlw 20 btfss RB0 movlw 10 movwf Fred In fact, a good compiler should be able to generate these sequences from the original C: if (RB0) Fred = 20; else Fred =10; Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software)s -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body