ROR

ROR, RORP, DROR, DRORP

 

ROR instruction rotates the (D) data source towards the right by (n) bits without carry flag.

  • ROR(RORP) is for 16bit source and DROR(DRORP) is for 32bit source.

 

 

D

Source

n

Number of bits to move right

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

ROR(P)

DROR(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 F12 is ON, H2347 moves to Y20.

If X00 is ON, the RORP instruction moves 1bit to the right side within Y20(16bit).

The lowest bit (b0) moves to the highest bit (b15) as rotation.