BKAND
BKAND, BKANDP
BKAND instruction performs a bitwise AND operation by using specified word (16bit) in Source 1 and Source 2 and places the result in the Destination. The bitwise AND operation returns 1, if the matching bits from both the operands are 1, otherwise it returns 0.
| |
S1, S2 | Source |
D | Destination |
n | Number of words |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
BKAND BKANDP | S1 | o | o | o | o | o | o | o | o | - | o | o | o | o | 5 | o | - | - |
S2 | o | o | o | o | o | o | o | o | - | o | o | o | o | |||||
D | o | - | o | o | o | - | o | o | - | o | o | o | - | |||||
n | o | o | o | o | o | o | o | o | - | o | o | o | o |
Example)
If X01 is ON, the BKAND performs a bitwise AND operation by using the 3 word of D0(D0, D1, and D2) and D100(D100, D101, and D102) and places the results in D200, D201, and D202.
Source 1 : D0, D1, and D2
Source 2 : D100, D101, and D102
Destination : D200, D201, and D202
Number of word : 3 word