<< Previous | Next >>

AND (HL)     Bitwise AND     Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

7F A6

AND (HL)

7 (2,2,1,2)

A = A & (HL)


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 assembler views "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.


<< Previous | Next >>