Instruction Set ArchitectureIP2022 Users Manual
152
www.ubicom.com
INCSNZ fr
Increment fr then Skip if Not Zero
Operation:
fr = fr + 1; if result is nonzero, then skip next
instruction
Bits affected:
None
Opcode:
0101 101f ffff ffff
Description:
This instruction increments the specified register
file by one and tests the new register value. If that
value is nonzero, 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:
incsnz0x099
jmp back1
mov 0x017,w
The incsnz instruction increments data
memory location 0x099. If the result is zero,
execution proceeds normally with the jmp
instruction to back1. If the result is nonzero, the
jmp instruction is skipped and the mov
instruction is executed.