# `rrd`

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

**Rotate digit right**

Category: Shifts and rotates

Rotates the low nibble of A and both nibbles of (HL) right by one digit, leaving the high nibble of A unchanged.

2 bytes · 18 cycles

## Flags

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

## Forms

- `rrd` · Copies the low nibble of (HL) to the low nibble of A, the previous low nibble of A to the high nibble of (HL), and the previous high nibble of (HL) to its low nibble.

## Example

```z80
        .org 0x8000
        ld hl, source
        ld a, 0x12
        rrd
        halt
source: .byte 0x34
```
