Arithmetic // SRL (Shift Right Logical)
0xCB3E - u52030
The contents of (hl) 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 |
|---|---|
| 15 | 2 |
S affected as defined
Z affected as defined
H reset
P/V detects parity
N reset
C affected as defined
{
"flags": {
"S": "affected as defined",
"Z": "affected as defined",
"H": "reset",
"P/V": "detects parity",
"N": "reset",
"C": "affected as defined"
},
"operation": "srl (hl)",
"opcode": "srl",
"operand": [
"(hl)"
],
"code": "CB3E",
"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 a zero is put into bit 7.",
"category": "Arithmetic",
"subCategory": "SRL (Shift Right Logical)"
}