Instruction Set ArchitectureIP2022 Users Manual
216
www.ubicom.com
Example:
sub w,0x099
This example subtracts the contents of W from
data memory location 0x099 and moves the
result into W. For example, if the data memory
location holds 0x35 and W holds 0x06, this
instruction subtracts 0x06 from 0x35 and writes
the result 0x2F into W. It also sets the C bit, clears
the DC bit, and clears the Z bit. The data memory
location is left unchanged.