8051help
New Member
Hi.
I need to rotate for an example x=0XFF for 3 to right.
I cant do that only with >> because that is shifting.
When you want rotate you need to "memory" all bit not to lose such as in case for shifting (i think).
So that is not the same.
Can I use this (x & 0xFF)>>3 ; for rotate ??
I need to rotate for an example x=0XFF for 3 to right.
I cant do that only with >> because that is shifting.
When you want rotate you need to "memory" all bit not to lose such as in case for shifting (i think).
So that is not the same.
Can I use this (x & 0xFF)>>3 ; for rotate ??