Logical
A bitwise AND operation is performed on the value in reg8
with the value in a
. The result is then stored in a
. Also includes 1R cycle if reg8
is (hl)
.
A bitwise AND operation is performed on the value in reg8i
with the value in a
. The result is then stored in a
.
A bitwise AND operation is performed on the value pointed to by regi
+ ofs8
with the value in a
. The result is then stored in a
.
All bits in the a
are inverted (one’s complemented).
- Opcode:
00101111
- Bytes: 1
- Flags:
- H: Set
- N: Set
- Cycles: 1F
A bitwise OR operation is performed on the value in reg8
with the value in a
. The result is then stored in a
. Also includes 1R cycle if reg8
is (hl)
.
A bitwise OR operation is performed on the value in reg8i
with the value in a
. The result is then stored in a
.
A bitwise OR operation is performed on the value pointed to by regi
+ ofs8
with the value in a
. The result is then stored in a
.
A bitwise AND operation is performed on the value in reg8
with the value in a
. Unlike the and
instruction, the result is not stored in a
. However, the flags are updated according to the result. Also includes 1R cycle if reg8
is (hl)
.
A bitwise AND operation is performed on imm8
with the value in a
. Unlike the and
instruction, the result is not stored in a
. However, the flags are updated according to the result.
A bitwise XOR operation is performed on the value in reg8
with the value in a
. The result is then stored in a
. Also includes 1R cycle if reg8
is (hl)
.
A bitwise XOR operation is performed on the value in reg8i
with the value in a
. The result is then stored in a
.
A bitwise XOR operation is performed on the value pointed to by regi
+ ofs8
with the value in a
. The result is then stored in a
.