IP2022 Users ManualInstruction Set Architecture
www.ubicom.com
115
AND fr,W
AND fr,W into fr
Operation:
fr = fr & W
Bits affected:
Z
Opcode:
0001 011f ffff ffff
Description:
This instruction performs a bitwise logical AND of
the contents of the specified data memory
location and W, and writes the 8-bit result into the
same data memory location. W is left unchanged.
If the result is zero, the Z bit is set.
Cycles:
1
Example:
and 0x099,W
This example performs a bitwise logical AND of
the working register W with a value stored in data
memory location 0x099. The result is written back
to the data memory location.
For example, suppose that the data memory
location 0x099 holds the value 0x0F and W holds
the value 0x13. The instruction takes the logical
AND of 0x0F and 0x13 and writes the result 0x03