<< Previous | Next >>

AND (HL)     Bitwise AND     Rabbit 2000/3000/3000A Instruction
Opcode
Instruction
Clocks
Operation

A6

AND (HL)

5 (2,1,2)

A = A & (HL)


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

The opcode for this instruction is different than the same instruction in the Rabbit 4000.

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.


<< Previous | Next >>