rra

Arithmetic // RLCA, RLA, RRCA, RRA

0x1F - u31

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
4 1

Condition Bits Affected

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

source
{
  "flags": {
    "S": "unaffected",
    "Z": "unaffected",
    "H": "reset",
    "P/V": "unaffected",
    "N": "reset",
    "C": "affected as defined"
  },
  "operation": "rra",
  "opcode": "rra",
  "operand": [],
  "code": "1F",
  "bytes": 1,
  "time": 4,
  "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": "RLCA, RLA, RRCA, RRA"
}