rl (hl)

Arithmetic // RLC (Rotate Left Circular)

0xCB16 - u51990

Description

The contents of (hl) are rotated left one bit position. The contents of bit 7 are copied to the carry flag and the previous contents of the carry flag are copied to bit 0.

T States Bytes
15 2

Condition Bits Affected

S affected as defined
Z affected as defined
H reset
P/V detects parity
N reset
C affected as defined

source
{
  "flags": {
    "S": "affected as defined",
    "Z": "affected as defined",
    "H": "reset",
    "P/V": "detects parity",
    "N": "reset",
    "C": "affected as defined"
  },
  "operation": "rl (hl)",
  "opcode": "rl",
  "operand": [
    "(hl)"
  ],
  "code": "CB16",
  "bytes": 2,
  "time": 15,
  "description": "The contents of (hl) are rotated left one bit position. The contents of bit 7 are copied to the carry flag and the previous contents of the carry flag are copied to bit 0.",
  "category": "Arithmetic",
  "subCategory": "RLC (Rotate Left Circular)"
}