AND (HL)
Bitwise AND
Rabbit 4000 Instruction
|
|
7F A6
|
AND (HL)
|
|
A = A & (HL)
|
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.