rrd
Rotate digit right
Rotates the low nibble of A and both nibbles of (HL) right by one digit, leaving the high nibble of A unchanged.
2 bytes18 cycles
SZHP/VNC ●●0●0–
- ● depends on the result
- 0 always 0
- – not changed
Forms
rrdCopies 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.
.org 0x8000
ld hl, source
ld a, 0x12
rrd
halt
source: .byte 0x34