rotl


Rotate (Rotate Left)

[Syntax]

-

rotl imm, reg2, reg3

-

rotl reg1, reg2, reg3

 

The following can be specified as imm:

-

Absolute expression having a value of up to 5 bits

[Function]

-

Syntax "rotl imm, reg2, reg3"

Rotates the word data of general-purpose register reg2 to the left by the specified shift amount, which is indicated by a 5-bit immediate value zero-extended to word length. The result is written to general-purpose register reg3. General-purpose register reg2 is not affected.

-

Syntax "rotl reg1, reg2, reg3"

Rotates the word data of general-purpose register reg2 to the left by the specified shift amount indicated by the lower 5 bits of general-purpose register reg1. The result is written to general-purpose register reg3. General-purpose registers reg1 and reg2 are not affected.

[Description]

-

If the following is specified as imm in syntax "rotl imm, reg2, reg3", the assembler generates one rotlNote machine instruction.

(a)

Absolute expression having a value in the range of 0 to 31

Note

The rotl machine instruction takes a register or immediate value in the range of 0 to 31 (0 to 0x1F) as the first operand.

 

-

Syntax "rotl reg1, reg2, reg3"

The assembler generates one rotl machine instruction.

[Flag]

CY

"1" if operation result bit 0 is "1"; otherwise "0", including if the rotate amount is "0"

OV

0

S

"1" if the operation result is negative; otherwise, "0"

Z

"1" if the operation result is "0"; otherwise, "0"

SAT

---