rrca

Rotate A right circular

Rotates A right one bit, copying bit 0 to C and to bit 7.

1 byte · 4 cycles

Used in
SZHP/VNC ––0–0●
  • ● set from the result
  • 0 always 0
  • – not changed

Forms

  • rrca

    The contents of A are rotated right one bit position. The contents of bit 0 are copied to the carry flag and bit 7.

        .org 0x8000
        ld a, 5
        rrca
        halt