<< Previous | Next >>

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

Opcode
Instruction
Operation
DD A6 d AND (IX+d) A = A & (IX+d)
FD A6 d AND (IY+d) A = A & (IY+d)

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
9
n/a
n/a
Rabbit 5000
10
9
8

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 result is stored in A.

The Rabbit 4000/5000 assemblers view "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.


Rabbit Instructions << Previous | Next >> rabbit.com