<< Previous | Next >>

RL bb,BCDE     Rotate Left Affect Carry     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
---- RL bb,BCDE   {CF,BCDE} = {BCDE,CF}
  bb = bb - 1
repeat while bb != 0
DD 68 RL 1,BCDE   {CF,BCDE} = {BCDE,CF}
  bb = bb - 1
repeat while bb != 0
DD 69 RL 2,BCDE   {CF,BCDE} = {BCDE,CF}
  bb = bb - 1
repeat while bb != 0
DD 6B RL 4,BCDE   {CF,BCDE} = {BCDE,CF}
  bb = bb - 1
repeat while bb != 0

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 4000
4
n/a
n/a
Rabbit 5000
4
4
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
·
·
·

Description

Rotates BCDE to the left with the C flag. Each bit in the register moves to the next highest-order bit position (bit 0 moves to bit 1, etc.) while the C flag moves to bit 0 and bit 31 moves to the C flag. This operation happens b number of times.

Figure 2: Bit logic of the RL instruction


Rabbit Instructions << Previous | Next >> rabbit.com