sra (hl)

Arithmetic // SRA (Shift Right Arithmetic)

0xCB2E - u52014

Description

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

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": "sra (hl)",
  "opcode": "sra",
  "operand": [
    "(hl)"
  ],
  "code": "CB2E",
  "bytes": 2,
  "time": 15,
  "description": "The contents of (hl) are shifted right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of bit 7 are unchanged.",
  "category": "Arithmetic",
  "subCategory": "SRA (Shift Right Arithmetic)"
}