RORC

Rotation with carry to right

RORC

ROtate Right with Carry


[Syntax]

RORC dest

 

[Operation]

dest >>= 1;

if ( C == 0 ) { dest &= 7FFFFFFFh; }

else { dest |= 80000000h; }

 

[Function]

-

This instruction treats dest and the C flag as a unit, rotating the whole one bit to the right.

 

[Instruction Format]

Syntax

Processng Size

dest

Code size

(Byte)

RORC dest

L

Rd

2

[Flag Change]

Flag

C

Z

S

O

Change

 

 

 

Conditions

C: The flag is set if the shifted-out bit is 1; otherwise it is cleared.

Z: The flag is set if dest is 0 after the operation; otherwise it is cleared.

S: The flag is set if the MSB of dest after the operation is 1 ; otherwise it is cleared.

 

[Description Example]

RORC R1