24
Rabbit 2000/3000 Microprocessor
Description
Performs a logical AND operation between the byte in A and the byte whose address is:
•
in HL, or
•
the sum of the data in IX and a displacement value d, or
•
the sum of the data in IY and a displacement value d.
The relative bits of each byte are compared (i.e., bit 0 of both bytes are compared, bit 1 of both bytes are com-
pared, etc.). The associated bit in the result byte is set only if both the compared bits are set. The result is
stored in A.
Example
If the byte in A contains the value 1011 1100 and the byte at memory location HL contains the value
1101 0101, then the execution of the instruction:
AND (HL)
would result in the byte in A becoming 1001 0100.
AND (HL)
AND (IX+
d
)
AND (IY+
d
)
Opcode
Instruction
Clocks
Operation
A6
AND (HL)
5 (2,1,2)
A = A & (HL)
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
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
L
0
•
•
•
Содержание 2000
Страница 2: ...ii Rabbit 2000 3000 Microprocessor...
Страница 4: ...iv Rabbit 2000 Microprocessor...
Страница 16: ...12 Rabbit 2000 3000 Microprocessor...
Страница 164: ...160 Instruction Reference Manual...
Страница 172: ...168 Rabbit 2000 3000 Microprocessor...
Страница 174: ...170 Rabbit 2000 3000 Microprocessor...