Instruction Set Architecture—IP2022 User’s Manual 128 www.ubicom.com CSE W,fr Compare W,fr then Skip if Equal Operation: fr - W; if result is zero, skip next instruction Bits affected: None Opcode: 0100 001f ffff ffff Description: This instruction subtracts the contents of W from
the specified data memory location and discards
the result. The data memory location and W are
left unchanged. If the result is zero (i.e. W and the
literal   are   equal),   the   following   instruction   is
skipped.   The   STATUS   register   bits   are   not
updated.
Cycles: 1 Example: cse    w,0x1F0;compare W with 0x1F0
ret
;if not equal, return nop ;else, skip to here This example compares the contents of W with
the contents of data memory location 0x1F0. If W
and  the  data  memory  location  hold  the  same
contents,  then  the  ret  instruction  is  executed,
otherwise the nop instruction is executed.