rrd

Arithmetic // RRD (Rotate Right bcd Digit)

0xED67 - u60775

Description

The contents of the low-order nibble of (hl) are copied to the low-order nibble of a. The previous contents are copied to the high-order nibble of (hl). The previous contents are copied to the low-order nibble of (hl).

T States Bytes
18 2

Condition Bits Affected

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

source
{
  "flags": {
    "S": "affected as defined",
    "Z": "affected as defined",
    "H": "reset",
    "P/V": "detects parity",
    "N": "reset",
    "C": "unaffected"
  },
  "operation": "rrd",
  "opcode": "rrd",
  "operand": [],
  "code": "ED67",
  "bytes": 2,
  "time": 18,
  "description": "The contents of the low-order nibble of (hl) are copied to the low-order nibble of a. The previous contents are copied to the high-order nibble of (hl). The previous contents are copied to the low-order nibble of (hl).",
  "category": "Arithmetic",
  "subCategory": "RRD (Rotate Right bcd Digit)"
}