Instruction Set ArchitectureIP2022 Users Manual
108
www.ubicom.com
Example:
add     w,0x099
This example adds the contents of data memory
location  0x099  to  W.  For  example,  if  the  data
memory location holds 0x81 and W holds 0x82,
this instruction adds 0x81 to 0x82 and writes the
lower eight bits of the result, 0x03, into W. It sets
the C bit because of the carry out of bit 7, and
clears the DC bit because there is no carry from
bit  3  to  bit  4.  The  Z  bit  is  cleared  because  the
result is nonzero.