X86-assembly/Instructions/ror

From aldeid
Jump to navigation Jump to search
You might also see: rol/ror encryption
You are here:
ror

Description

The ror instruction is similar to shr except the shifted bits are rotated to the other end.

Syntax

ror destination, count

Example

mov eax, 0xA  ; set EAX to 0xA (1010 in binary)
ror eax, 2    ; rotate 2 bits right in EAX, now equal to 0x82 (10000010 in binary)

Comments