srl h

Arithmetic // SRL (Shift Right Logical)

0xCB3C - u52028

Description

The contents of h are shifted right one bit position. The contents of bit 0 are copied to the carry flag and a zero is put into bit 7.

T States Bytes
8 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": "srl h",
  "opcode": "srl",
  "operand": [
    "h"
  ],
  "code": "CB3C",
  "bytes": 2,
  "time": 8,
  "description": "The contents of h are shifted right one bit position. The contents of bit 0 are copied to the carry flag and a zero is put into bit 7.",
  "category": "Arithmetic",
  "subCategory": "SRL (Shift Right Logical)"
}