PIC16C5X 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 : 2Cf

Bit field:
0010 11df ffff

Words : 1

Cycles : 1(2)

Affected flags :None

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