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) Aand(HL)
SflagSet if Ais negative; else resetZflagSet if Ais 0; else resetHflagReset P/VflagSet if Ahas even parity; else resetNflagReset CflagNot 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