ROTATE
Previous  Next

Syntax:    
    ROTATE variable {LEFT | RIGHT} [SIMPLE]

Explanation:
The ROTATE command will rotate variable in a specified direction.

This table shows the operation of the ROTATE command
Command
variable
STATUS.C
Values at start:
b'00110011'
1
ROTATE variable LEFT
b'01100110'
0
ROTATE variable RIGHT
b'10011001'
1
ROTATE variable LEFT SIMPLE
b'01100110'
N/A
ROTATE variable RIGHT SIMPLE
b'10011001'
N/A
Example:
    'This program will rotate the variable Pattern two places to the
    'right.
    Pattern  = 15
    'Value of Pattern in binary: 00001111
    ROTATE Pattern RIGHT SIMPLE
    'Value of Pattern in binary: 10000111
    ROTATE Pattern RIGHT SIMPLE
    'Value of Pattern in binary: 11000011
This site hosted for free by:
SourceForge.net Logo