ROTATELM(RS, SHIFT, MASK)

Purpose

Rotate Left AND with Mask

Rotates the value of RS left by the number of bits specified in SHIFT. The rotated data is ANDed with the MASK and then returned as a result.

Class

Function

Argument type and attributes

RS
must be of type integer.
SHIFT
must be a literal value. For 4-byte RS values, the SHIFT value will be truncated to the last five bits. For 8-byte RS values, the SHIFT value will be truncated to the last six bits.
MASK
must be a literal value of type integer.

Result type and attributes

Same as RS.

Result value

The rotated data ANDed with MASK.