PIC17CXX 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 : B2kk

Bit field:
1011 0010 kkkk kkkk

Words : 1

Cycles : 1

Affected flags : Zero, Carry, Digit Carry, OVerflow

See also :   ADDLW,   MULLW
Previous    Upper level    Next