# `rla`

[Z80 Documentation](https://asm-editor.specy.app/documentation/z80.md) › [Instructions](https://asm-editor.specy.app/documentation/z80/instruction.md)

Web page: https://asm-editor.specy.app/documentation/z80/instruction/rla

**Rotate A left through carry**

Category: Shifts and rotates

Rotates A left one bit, moving C into bit 0 and bit 7 into C.

1 byte · 4 cycles

Used in: [Multiply and divide, with the remainder](https://asm-editor.specy.app/learn/courses/z80/examples/multiply-and-divide.md) (Z80 assembly), [Print a number in any base without help](https://asm-editor.specy.app/learn/courses/z80/examples/number-to-string.md) (Z80 assembly)

## Flags

| Flag | Effect |
| --- | --- |
| S | not changed |
| Z | not changed |
| H | always 0 |
| P/V | not changed |
| N | always 0 |
| C | set from the result |

## Forms

- `rla` · The contents of A are rotated left one bit position. The contents of bit 7 are copied to the carry flag and the previous contents of the carry flag are copied to bit 0.

## Example

```z80
        .org 0x8000
        ld a, 5
        rla
        halt
```
