Instruction Set ArchitectureIP2022 Users Manual
114
www.ubicom.com
Example:
addc w,0x099
This example adds the contents of data memory
location 0x099 and the C bit to W. If the data
memory location holds 0x71, W holds 0x92, and
the C bit is set, this instruction adds 0x72 to 0x92
and writes the lower eight bits of the result 0x04
into W. It sets the C bit because of the carry out of
bit 7, clears the DC bit because there is no carry
from bit 3 to bit 4, and clears the Z bit because the
result is nonzero.