Wouter, As mentioned before, everyone seems to get the single instruction i the body of the if right. What is a lot trickier is 'hoisting' code out of the if so that the body _becomes_ one instruction. For example: fred = 10 if (RB0) fred = 20 can be (best): movlw 10 btfsc RB0 movlw 20 movwf fred or even (better): movlw 10 movwf fred movlw 20 btsc RB0 movwf fred but tends to be (acceptable): movlw 10 movwf fred btfss RB0 goto over movlw 20 movwf fred Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu