Thank you all for your inputs. What I did is I COMF the w reg. and I added 0x01 to w and that worked for me. Thanks again. At 01:37 PM 5/6/99 +0200, you wrote: >Hi, >I think the idea is bogus: XOR with itself produces always zero. I guess >COMF it, and then INC it. >Imre > > >On Wed, 5 May 1999, Mr and Mrs James Paul wrote: > >> Exclusive or it with itself and then add 1 >> >> >> >> >Hi, >> >Can anybody tell me how to do a 2's complement of hex# stored in the w >> >register. Thanks >> >Aidi Moubhij >> > >> >aidi@mjr.com >> > >> >> > Aidi Moubhij aidi@mjr.com