User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
78
ROL (Rotate Left)
Parameter 1 is rotated left by the number of bits specified in Parameter 2, and the result placed in the
Destination.
Eg. Destination = #R1, Parameter 1 = #R1, Parameter 2 = 1
If #R1 initially contains the value 10 hex (0000 0000 0001 0000 binary), it will contain 20 hex (0000 0000
0010 0000 binary) after calling this function. If #R1 initially contains the value 8000 hex (1000 0000 0000
0000 binary), it will contain 1 hex (0000 0000 0000 0001 binary) after calling this function.
ROR (Rotate Right)
Parameter 1 is rotated right by the number of bits specified in Parameter 2, and the result placed in the
Destination.
Eg. Destination = #R1, Parameter 1 = #R1, Parameter 2 = 1
If #R1 initially contains the value 2 hex (0000 0000 0000 0010 binary), it will contain 1 hex (0000 0000 0000
0001 binary) after calling this function. If #R1 initially contains the value 1 hex (0000 0000 0000 0001 binary),
it will contain 8000 hex (1000 0000 0000 0000 binary) after calling this function.