Please read this page from the main YASEP interface
ROR : ROtate Right
The bits of the source register (snd) are rotated
(circular shifted) to the right by either
It is similar to SHR but the Least Significant Bits that are
shifted out are reintroduced in the Most Significant bits in the same order.
In the following examples, we will rotate the bits of a register by two positions.
For YASEP16, the movement of the bits can be summarised by this diagram:
For YASEP32, the principle is identical but with 32 bits instead of 16.
Here is one example using assembly code :
mov 1101101101101101b r1
ror 2 r1
After the last instruction, r1=0111011011011b
All the bits are preserved but are in different positions.