Bob Ammerman wrote: > Use XORLW instead of XORWF > > Use BTFSC instead of BTFSS > > and you should be good to go. Except that you'll also want to change your CALLs to GOTOs. -Andy P.S. And to avoid possible read-modify-write problems, you MIGHT want to put small delays between the BCF/BSF operations on port B in GORED, GOYEL, and GOGRN... Or delete them and just do a MOVLW xx/MOVWF PORTB after the MOVWF TXREG in each of those sections. === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu