>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. Use COMF instruction. I think you can >do it using XOR but i'm not sure how that works. MOVLW 0xFF; (-1) XORWF Reg,f but why it need ? This is the same as COMF Reg,f ================================== Alex Torres, Kharkov, Ukraine (exUSSR) altor@geocities.com 2:461/28 FidoNet http://www.geocities.com/SiliconValley/Lab/6311