Martin Darwin wrote: >While we are on this topic what it the easiest way to convert >movb serial_out,c ; moves carry bit to portb pin2 > >The best I could come up with was > >BTFSC status,carry >BSF portb,pin2 >BTFSS status,carry >BCF portb,pin2 Martin: Eric Smith (who really knows what he's doing) has already given a very good answer to your question, but here's a really cool solution that'll work if yoor serial-out pin is set to portb,0 AND it's the only output on port B: MOVF STATUS,W MOVWF PORTB You can also use portb,1 (again, only if there are no other port B pins configured as outputs): RLF STATUS,W MOVWF PORTB -Andy -- Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California