I have a byte I want to cycle through, where the bits should be shifted with 'wrapping' - like so:
#%00000010 --> #%00000001 --> #%10000000
I thought that ROR / ROL worked this way (and opposite), but it does not seem to in this case. Is my understanding flawed, or is it something deeper in the code giving me the issue? If my understanding is flawed, how do you guys achieve something like this?
Thanks!
#%00000010 --> #%00000001 --> #%10000000
I thought that ROR / ROL worked this way (and opposite), but it does not seem to in this case. Is my understanding flawed, or is it something deeper in the code giving me the issue? If my understanding is flawed, how do you guys achieve something like this?
Thanks!