ROR is ROtate Right. ROL is ROtate Left.
Difference to a normal shift is that in a shift all bits move one bit position. The leftmost in a shift left or rightmost in a shift right usually gets a 0.
In a rotation the bits move in a circle: in a left shift bit 7 moves into bit 0.
See here: https://en.wikipedia.org/wiki/Bitwise_operation#Rotate_no_carry
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ROR is ROtate Right. ROL is ROtate Left.
Difference to a normal shift is that in a shift all bits move one bit position. The leftmost in a shift left or rightmost in a shift right usually gets a 0.
In a rotation the bits move in a circle: in a left shift bit 7 moves into bit 0.
See here: https://en.wikipedia.org/wiki/Bitwise_operation#Rotate_no_carry