rr (iy+*),a

Arithmetic // RRC, RR (Rotate Right Circular, Rotate Right)

0xFDCB**1F - u64971

Description

The contents of the memory location pointed to by iy plus * are rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7. The result is then stored in a.

T States Bytes
23 4

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": "rr (iy+*),a",
  "opcode": "rr",
  "operand": [
    "(iy+*)",
    "a"
  ],
  "code": "FDCB**1F",
  "bytes": 4,
  "time": 23,
  "description": "The contents of the memory location pointed to by iy plus * are rotated right one bit position. The contents of bit 0 are copied to the carry flag and the previous contents of the carry flag are copied to bit 7. The result is then stored in a.",
  "category": "Arithmetic",
  "subCategory": "RRC, RR (Rotate Right Circular, Rotate Right)"
}