<< Previous | Next >>

AND (HL)     Bitwise AND     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
7F A6 AND (HL) A = A & (HL)

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
5
n/a
n/a
Rabbit 5000
7
7
5

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

Description

Bitwise AND operation between A and the byte whose address is in HL. The result is stored in A.The Rabbit 4000/5000 assemblers view "AND A,(HL)" and "AND (HL)" as equivalent instructions.

The opcode for this instruction is different than the same instruction in the Rabbit 2000, 3000 and 3000A.

Example

If the byte in A contains the value 1011 1100 and the byte at the memory location addressed in HL contains the value 1101 0101, then the execution of the instruction:


AND (HL)

would result in the byte in A becoming 1001 0100.


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