IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
125
Example:
cmp w,0x099
This example subtracts the contents of W from
data memory location 0x099. For example, if the
data memory location holds 0x35 and W holds
0x06, this instruction subtracts 0x06 from 0x35. It
then sets the C bit, clears the DC bit, and clears
the Z bit. The contents of the data memory
location and W are left unchanged.