Knowledge Base

X = X >> 1

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

Before76543210
After07654321

This can be a convenient way to halve the value in X, ie


LoadX %11111110 ;clear..
AndM ;..bit 0 (so a 0 will be put in bit 7)
RorM ;now rotate (X is now half its previous value)

See also RolM