Instruction Set ArchitectureIP2022 Users Manual
112
www.ubicom.com
Example:
addc 0x099,w
This example adds the contents of W and the C
bit to data memory location 0x099. For example,
if the data memory location holds 0x7F, W holds
0x02, and the carry bit is set, this instruction adds
0x03 to 0x7F, writes the result 0x82 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.