IP2022 User’s Manual—Instruction Set Architecture www.ubicom.com 155 INCSZ fr Increment fr into fr then Skip if Zero Operation: fr = fr + 1; if result is 0, then skip next instruction Bits affected: None Opcode: 0011 111f ffff ffff Description: This  instruction  increments  the  specified  data
memory   location   by   one   and   tests   the   new
register  value.  If  that  value  is  zero,  the  next
program    instruction    is    skipped.    Otherwise,
execution    proceeds    normally    with    the    next
instruction.
Cycles: 1 if tested condition is false, 2 if tested condition
is true
Example: incsz 0x099
jmp    back1
nop
The incsz instruction increments data memory
location 0x099. If the result is nonzero, execution
proceeds  normally  with  the  jmp  instruction  to
back1. If the result is zero, the jmp instruction is skipped and the nop instruction is executed.