rld
Rotate digit left
Rotates the low nibble of A and both nibbles of (HL) left 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
rldCopies the low nibble of (HL) to its high nibble, the previous high nibble of (HL) to the low nibble of A, and the previous low nibble of A to the low nibble of (HL).
.org 0x8000
ld hl, source
ld a, 0x12
rld
halt
source: .byte 0x34