X = X << 1
Rotates the contents of X left one bit position left with bit 7 rotating to bit 0.
| Before | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| After | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 |
This can be a convenient way to double the value in X, ie
LoadX %01111111 ;clear..
AndM ;..bit 7 (so a 0 will be put in bit 0)
RolM ;now rotate (X is now double its previous value)
See also RorM