PIC17CXX Instruction Set


SUBWFB


Syntax : SUBWFB f,d

Description : Subtracts (2's complement method) the W register and the Carry
              flag (borrow) from register 'f'.
              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 : (f) - (W) - (neg(C)) → d

Hex code : 02ff

Bit field:
0000 001d ffff ffff

Words : 1

Cycles : 1

Affected flags : Zero, Carry, Digit Carry, OVerflow

See also :   ADDWF,   ADDWFC,   MULWF,   SUBWF
Previous    Upper level    Next