PIC17CXX Instruction Set


NEGW


Syntax :NEGW f,d

Description : The contents of the W register are negated using two's complement. 
              If 'd' is 0 the result is stored in W and memory location 'f'.
              If 'd' is 1 the result is placed only in register 'f'.

Function : com(W) + 1 → f;   com(W) + 1 → d.

Hex code : 2Cff

Bit field:
0010 110d ffff ffff

Words : 1

Cycles : 1

Affected flags : OV, C, DC, Z

See also :   ---
Previous    Upper level    Next