eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
288
RES b, (HL)
Reset Bit
Operation
(HL)[b] ← 0
Description
The (HL) operand is an 8-bit value at the memory location specified by the contents of the
multibyte register (HL). Bit
b
of this value is reset to 0.
Condition Bits Affected
None.
Attributes
kk = binary code 10 bbb 110; where bbb identifies the bit tested and is assembled into
the object code, as indicated in Table 80.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
RES b,(HL) X 3 CB, kk
RES.S b,(HL) 1 4 52, CB, kk
RES.L b,(HL) 0 4 49, CB, kk
Table 80. bbb Opcodes for RES b, (HL) Instruction (hex)
Bit
Tested bbb
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111