IP2022 User’s Manual—Instruction Set Architecture www.ubicom.com 153 INCSNZ W,fr Increment fr into W then Skip if Not Zero Operation: W  =  fr  +  1;  if  result  is  nonzero,  then  skip  next
instruction
Bits affected: None Opcode: 0101 100f ffff ffff Description: This   instruction   increments   the   value   in   the
specified  data  memory  location  and  moves  the
result  to  W.  The  data  memory  location  is  left
unchanged.
If the result is nonzero, the next instruction in the
program
is skipped. Otherwise,                                                                               program
execution    proceeds    normally    with    the    next
instruction.
Cycles: 1 if tested condition is false; 2 if tested condition
is true
Example: incsnzw,0x099;load 0x099 + 1 to W
ret    ;return if 0x099 + 1 is 0
nop    ;otherwise continue here
This example takes the contents of data memory
location 0x099, increments that value, and moves