PIC16CXX Instruction Set


SUBLW


Syntax : SUBLW k

Description : The contents of the W register are subtracted from the 8-bit 
              literal 'k'. (2's complement) The result is stored in the W register.

Function :k - (W)→ W

Hex code : 3Ckk

Bit field:
11 110x kkkk kkkk

Words : 1

Cycles : 1

Affected flags : Zero, Carry, Digit Carry

See also :   ADDLW
Previous    Upper level    Next