eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
313
RLD
Rotate Left Decimal
Operation
A[3:0] ← HL[7:4]
HL[7:4] ← HL[3:0]
HL[3:0] ← A[3:0]
Description
The CPU copies the contents of the low-order four bits of the memory location (HL) into
the high-order four bits of the (HL). The CPU next copies the previous contents of the
high-order four bits of the (HL) into the low-order four bits of the accumulator, A. The
CPU next copies the previous contents of the low-order four bits of the accumulator into
the low-order four bits of the (HL).
Condition Bits Affected
Attributes
S Set if the accumulator is negative; reset otherwise.
Z Set if the accumulator is 0; reset otherwise.
H Reset.
P/V Set if parity of the accumulator is even; reset otherwise.
N Reset.
C Not affected.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
RLD —X 5ED, 6F