-- -- > | OPERAND | -- -- > | C |
ADDRESS METHODS: (An), (An)+, -(An), x(An), x(An,xr.s), x.w, x.l (only when rotating a word in the memory)
DATA LENGTH: Byte, word, longword
When rotating in the memory, you can only use word.
FLAGS: | X - U |
N - S | |
Z - S | |
C - Equal to the bit that was last moved from the operand. If number of steps is zero, the flag is cleared. | |
V - 0
|
SYNTAX: | ROL #<steps>,Dy |
ROL Dx,Dy | |
ROL <ea> |
EXAMPLE CODE:
ROL.B #1,D0 if D0.B contained 00001111, it would now be 10000111