rlca

Rotate A left circular

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

1 byte · 4 cycles

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

Forms

  • rlca

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

        .org 0x8000
        ld a, 5
        rlca
        halt