<< Previous | Next >>

> AND (IX+d)
> AND (IY+d) Bitwise AND Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> DD A6 d | AND (IX+d) | 9 (2,2,2,1,2) | A = A & (IX+d)
> FD A6 d | AND (IY+d) | 9 (2,2,2,1,2) | A = A & (IY+d)

> Flags | ALTD | IOI/IOE
> S | Z | L/V | C | F | R | SP | S | D
> · | · | L | 0 | · | · |  | · |

> #### Description

> Performs a bitwise AND operation between A and the byte whose address is:

> - the sum of IX and the 8-bit signed displacement d, or
> - the sum of IY and the 8-bit signed displacement d

> The result is stored in A.

> The Rabbit 4000 assembler views "AND A,(IX+d)" and "AND (IX+d)" as equivalent instructions. The same is true for "AND A,(IY+d)" and "AND (IY+d)."

> #### Example

> If the byte in A contains the value 1011 1100 and the byte at memory location IX+d contains the value 1101 0101, then the execution of the instruction:

>     AND (IX+d)

> would result in the byte in A becoming 1001 0100.

<< Previous | Next >>