eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
339
SET b, (HL)
Set Bit
Operation
(HL)[b] ← 1
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 8-bit value is set to 1.
Condition Bits Affected
None.
Attributes
kk = binary code 11 bbb 110; where bbb identifies the bit tested and assembled into the
object code, as indicated in Table 96.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
SET b,(HL) X 3 CB, kk
SET.S b,(HL) 1 4 52, CB, kk
SET.L b,(HL) 0 4 49, CB, kk
Table 96. bbb Opcodes for SET b, (HL) Instruction (hex)
Bit
Tested bbb
Bit
Tested bbb
0 000 4 100
1 001 5 101
2 010 6 110
3 011 7 111