Instruction Set Architecture—IP2022 User’s Manual 140 www.ubicom.com DECSZ fr Decrement fr into fr then Skip if Zero Operation: fr = fr - 1; if result is 0, then skip next instruction Bits affected: None Opcode: 0010 111f ffff ffff Description: This instruction decrements the specified register
file 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, 3 if tested condition
is true
Example: decsz 0x18
jmp    back1
mov    0x19,w
The decsz instruction decrements data memory
location 0x18. If the result is nonzero, execution
proceeds normally with the jmp instruction. If the
result is zero, the jmp instruction is skipped and
the mov instruction is executed.