On Mon, 3 May 1999 17:42:37 -0400 Mike Henning writes: > movlw .255 > xorwf portb,w > movwf tankod Use the COMF instruction if the value to be inverted is in a file register. If it is in W, XORLW with 255 (hex FF). ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com/getjuno.html or call Juno at (800) 654-JUNO [654-5866]