ROTATE - rotate word N bits to left or right.
Alternate Entry Name: .ROTAT
Usage:
B:
twirled = rotate( word, count );
C:
int rotate(int word, int count);
Where:
- twirled
- is the rotated word.
- word
- is the word to be rotated.
- count
- is the number of bits by which "word" is to be
rotated. If "count" is negative,
"word" is rotated to the RIGHT by
-"count" bits; otherwise, "word" is
rotated to the LEFT.
Description:
ROTATE rotates a word to the left or right. The hardware
reduces the rotation "count" mod 128.
Copyright © 1996, Thinkage Ltd.