PIC17CXX Instruction Set


COMF


Syntax : COMF f,d

Description : The contents of the 'f' register are complemented.
              If 'd' is 0 the result is stored in the W register.
              If 'd' is 1 the result is stored back in register 'f'.

Function : neg(f) → d

Hex code : 12ff

Bit field:
0001 001d ffff ffff

Words : 1

Cycles : 1

Affected flags : Zero

See also :   ---
Previous    Upper level    Next