Instruction Set ArchitectureIP2022 Users Manual
138
www.ubicom.com
DECSNZ W,fr Decrement fr into W then Skip if Not Zero
Operation:
W = fr - 1; if nonzero result, then skip next
instruction
Bits affected:
None
Opcode:
0100 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