RRDΒΆ
- RRD
- Rotate Right Decimal
- Description
- Moves the lower four bits of
A
(0-3) into the upper four bits of(HL)
(4-7); moves the upper four bits of(HL)
(4-7) into the lower four bits of(HL)
(0-3); moves the lower four bits of(HL)
(0-3) into the lower four bits ofA
(0-3). - Uses
- Shifting digits around with binary-coded decimal?
- Results
Register/Flag 16-bit (non-ADL) 24-bit (ADL) A
and(HL)
S
flagSet if A
is negative; else resetZ
flagSet if A
is 0; else resetH
flagReset P/V
flagSet if A
has even parity; else resetN
flagReset C
flagNot affected - Allowed Instructions
Instruction Opcode CC (ADL/non-ADL) CC (.S) CC (.L) rrd $ED, $67 2F + 1R + 1W + 1 3F + 1R + 1W + 1 3F + 1R + 1W + 1 - See Also
- DAA, RLD, RR, RRC