z80:Opcodes:RL

From Learn @ Cemetech
Jump to navigationJump to search

9-bit rotation to the left. the register's bits are shifted left. The carry value is put into 0th bit of the register, and the leaving 7th bit is put into the carry.

Syntax

   RL op8

Allowed Instructions

   RL A
   RL B
   RL C
   RL D
   RL H
   RL L
   RL (HL)
   RL (IX+n)
   RL (IY+n)

Effects

C is changed to the leaving 7th bit, H and N are reset, P/V is parity, S and Z are modified by definition.

Uses

T-States

r denotes 8-bit register.

r 8
(hl) 15
(ix+X) 23
(iy+X) 23


See Also

RLA,RLC,RLCA,RLD,RR,RRA,RRC,RRCA,RRD,SLA,SLL/SL1,SRA,SRL