# `rrca`

[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/rrca

**Rotate A right circular**

Category: Shifts and rotates

Rotates A right one bit, copying bit 0 to C and to bit 7.

1 byte · 4 cycles

Used in: [The snake game](https://asm-editor.specy.app/learn/courses/z80/examples/snake.md) (Z80 assembly), [Flappy ASM](https://asm-editor.specy.app/learn/courses/z80/examples/flappy-asm.md) (Z80 assembly)

## Flags

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

## Forms

- `rrca` · Rotates A right one bit position. Copies bit 0 to the carry flag and to bit 7.

## Example

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