<< Previous | Next >>

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

Opcode
Instruction
Operation
-- RLC bb,BCDE   BCDE = {BCDE[30,0],B[7]}
  CF = B[7]
  bb = bb-1
repeat while bb != 0
DD 68 RLC 1,BCDE   BCDE = {BCDE[30,0],B[7]}
  CF = B[7]
  bb = bb-1
repeat while bb != 0
DD 69 RLC 2,BCDE   BCDE = {BCDE[30,0],B[7]}
  CF = B[7]
  bb = bb-1
repeat while bb != 0
DD 6B RLC 4,BCDE   BCDE = {BCDE[30,0],B[7]}
  CF = B[7]
  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 (bit 0 moves to bit 1, bit 1 moves to bit 2 etc.). Bit 31 moves to the C flag and bit 0. See the figure below.

Figure 6: The bit logic of the RLC operation.

This operation happens bb number of times.


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