I'm thinking it in the following way (as example, 2 byte array, shifted to right)
1. Read both array bytes into variables A and B
2. Shift B right 1 bit
3. Add LSB from A as MSB to B
4. Shift A right
5. Write A and B back to array
Repeat as desired.
Correct?
Bookmarks