In addition to the shift instructions we also have the rotate right and rotate left instructions in this folder.
The rotate right instruction works by rotating bits to the right according to the value entered in the IN input by whatever bit you define for it located in the N input.
Unlike the shift instructions, there will be no bits lost or added for the input value when using the rotate instructions. Instead, here the bits will only rotate within the input value.
The rotate left instruction works in the exact opposite way of the rotate right instruction.
8 Comments