Instruction Set ArchitectureIP2022 Users Manual
106
www.ubicom.com
Example:
add 0x099,w
This example adds the contents of W to data
memory location 0x099. For example, if the data
memory location holds 0x7F and W holds 0x02,
this instruction adds 0x02 to 0x7F, writes the
result 0x81 into the data memory location, and
clears the C and Z bits. It sets the DC bit because
of the carry from bit 3 to bit 4.