ROR (rotate right)

Right shifts the bits of a value with rotation.

Syntax

ROR1 value [in,1], n [in,1u], result [out,1] ;code:125
ROR2 value [in,2], n [in,1u], result [out,2] ;code:126
ROR4 value [in,4], n [in,1u], result [out,4] ;code:127
ROR8 value [in,8], n [in,1u], result [out,8] ;code:128

Description

This instruction performs bitwise right shift operation with rotation by n bits.

This instruction shifts the bits of input value right by the number of bits specified in n. Digits shifted off the right are moved as new bits on the left.

If n is greater than number of bits in the value (correspondingly 8, 16, 32 or 64) the result is undefined.

NoASM

There are several kinds of these instructions defined in NoASM Compiler:

ROR1,  ROR2,  ROR4,  ROR8,
ROR1u, ROR2u, ROR4u, ROR8u