Purpose: | Bit rotate of an Integer | |||
Format: | opcode cnt.rb, src.rl, dst.wl | |||
Operation: | dst <- src rotated cnt bits; | |||
Condition Codes: |
N <- dst LSS 0; Z <- dst EQL 0; V <- 0; C <- C; |
|||
Exceptions: | None | |||
Opcodes: |
|
|||
Description: | The source operand is rotated logically by the number of bits specified by the count operand and the destination operand is replaced by the result. The source and count operands are unaffected. A positive count operand rotates to the left. A negative count operand rotated to the right. A 0 count operand replaces the destination operand with the source operand. i.e. ROTL #0, src, dst becomes MOVL src, dst. |