<< Previous | Next >>

RLC BC
RLC DE
    Rotate Left Affect Carry
    Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
60 RLC BC BC = {BC[14,0],B[7]}
CF = B[7]
50 RLC DE DE = {DE[14,0],D[7]}
CF = D[7]

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

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

Description

Rotates BC or DE to the left (bit 0 moves to bit 1, etc.). The highest-order bit is rotated to the C flag and bit 0. See the figure below.

Figure 5: The bit logic of the RLC instruction


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