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
Mnemonic Operand
RES
RES.S
RES.L
= binary code
kk
the object code, as indicated in
Table 80.
Bit
Tested
0
1
2
3
4
5
6
7
UM007714-0908
ADL Mode Cycle Opcode (hex)
X
b,(HL)
1
b,(HL)
0
b,(HL)
; where
10 bbb 110
Table
Opcodes for RES b, (HL) Instruction (hex)
bbb
bbb
000
001
010
011
100
101
110
111
3
CB, kk
4
52, CB, kk
4
49, CB, kk
identifies the bit tested and is assembled into
bbb
80.
®
eZ80
CPU
User Manual
288
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers