Michael: Pic has every thing you need . for example how to do NOT function. movlw b'1' ; load 1 in w movwf temp ; save it here movwf portb ; send it to portb rb0 is 1 you can use led comf temp,w ; complement temp ( NOT) movwf portb ; now portb rb0 is 0 hope this helps Andre Michael Hearn wrote: > Dear all, > > I need to NOT a number for a control project my school is doing. However, > the instruction set for the PIC chip does not have a NOT. I think you can > do it using XOR but i'm not sure how that works. > > Please help, > Michael Hearn and Tom Furlong (Fallibroome High School, England) -- ========================================== = http://www.compufire.com = = mailto:andre@compufire.com = = mailto:mcu-engineering@compufire.com = = Andre Abelian: Engine Electronics, Inc.= = Tel 909-589-5485 Fax 909-598-5695 = ==========================================