# `rra`

[Z80 Documentation](https://asm-editor.specy.app/documentation/z80.md) › [Instructions](https://asm-editor.specy.app/documentation/z80/instruction.md)

Web page: https://asm-editor.specy.app/documentation/z80/instruction/rra

**Rotate A right through carry**

Category: Shifts and rotates

Rotates A right one bit, moving C into bit 7 and bit 0 into C.

1 byte · 4 cycles

## Flags

| Flag | Effect |
| --- | --- |
| S | not changed |
| Z | not changed |
| H | always 0 |
| P/V | not changed |
| N | always 0 |
| C | set from the result |

## Forms

- `rra` · 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.

## Example

```z80
        .org 0x8000
        ld a, 5
        rra
        halt
```
