PIC17CXX Instruction Set


DECFSZ


Syntax : DECFSZ f,d

Description : Decrements 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'.
							
              If the result is 0 the next instruction is skipped.
              If the result is 0, the next instruction, which is
              already fetched, is discarded. A NOP is executed instead,
              making it a two cycles instruction.

Function : f - 1 → d; skip next if result = 0

Hex code : 16ff

Bit field:
0001 011d ffff ffff

Words : 1

Cycles : 1(2)

Affected flags :None

See also :   DECF,   DCFSNZ,   INCF,   INCFSZ,   INFSNZ
Previous    Upper level    Next