Mnemonics

RRCA

Rotate and Shift Group
Expansion:
Rotate Right Circular Accumulator
Usage:
dec {r}

The RRCA instruction rotates the bits in the A register one position to the right. The bit that is shifted out on the right (least significant bit) is wrapped around to the left (most significant bit), and this bit also sets the Carry flag (C).

Example

ld a, %11001001 ; Load A with the value %11001001 rrca ; Rotate right circular A ; After RRCA ; A = %11100100 ; C (Carry flag) = 1

See also