IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
141
DECSZ W,fr Decrement fr into W then Skip if Zero
Operation:
W = fr - 1; if result is 0, then skip next instruction
Bits affected:
None
Opcode:
0010 110f ffff ffff
Description:
This instruction decrements 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 zero, 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