rr a

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

0xCB1F - u51999

Description

The contents of a 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.

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": "rr a",
  "opcode": "rr",
  "operand": [
    "a"
  ],
  "code": "CB1F",
  "bytes": 2,
  "time": 8,
  "description": "The contents of a 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.",
  "category": "Arithmetic",
  "subCategory": "RRC, RR (Rotate Right Circular, Rotate Right)"
}