ROLC

Rotation with carry to left

ROLC

ROtate Left with Carry


[Syntax]

ROLC dest

 

[Operation]

dest <<= 1;

if ( C == 0 ) { dest &= FFFFFFFEh; }

else { dest |= 00000001h; }

 

[Function]

-

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

 

[Instruction Format]

Syntax

Processng Size

Operand

Code Size

(Byte)

dest

ROLC 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]

ROLC R1