RCL

RCL, RCLP, DRCL, DRCLP

 

RCL instruction rotates the (D) data source towards the left by (n) bits with carry flag (F112).

  • RCL (RCLP) is for 16bit source and DRCL (DRCLP) is for 32bit source.

 

 

D

Source

n

Number of bits to move left

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

RCL(P)

DRCL(P)

D

o

-

o

o

o

-

o

o

-

o

o

o

-

3

o

-

o

n

o

o

o

o

o

o

o

o

-

o

o

o

o

 

Example)

If F93 is ON, the RCLP instruction moves 1bit to the left side within Y20 (16bit) by every 1 sec.

The highest bit (b15) moves to carry flag and the carry flag moves to the lowest bit (b0).