Knowledge Base

X = X << 1

Rotates the contents of X left one bit position left with bit 7 rotating to bit 0.

Before76543210
After65432107

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