<< Previous | Next >>

AND (HL)     Bitwise AND     Rabbit 2000/3000/3000A Instruction

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

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

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 and 5000.

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