<< Previous | Next >>

RLC (IX+d)
RLC (IY+d)
    Rotate Left Affect Carry
    Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
DD CB d 06 RLC (IX+d) (IX+d) = {(IX+d)[6,0],(IX+d)[7]}
CF = (IX+d)[7]
FD CB d 06 RLC (IY+d) (IY+d) = {(IY+d)[6,0],(IY+d)[7]}
CF = (IY+d)[7]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
13
n/a
n/a
Rabbit 5000
14
12
10

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

Description

Rotates to the left the data whose address is:

Each bit moves to the next highest-order bit position (bit 0 moves to bit 1, etc.). Bit 7 moves to both bit 0 and the C flag. See Figure 7 for an illustration.

Example

If the sum of IX and d is 0x4545, the byte in the memory location 0x4545 is 0110 1010, and the C flag is set, then after the execution of the operation:


RLC (IX+d)

the byte in memory location 0x4545 will contain 1101 0100 and the C flag will be reset.


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