Log in

View Full Version : need info on ROR and ROL


javelin
October 19th, 2001, 20:32
i was wondering what ROR and ROL do.

Bengaly
October 20th, 2001, 03:35
ROR - Rotate Right
Usage: ROR dest,count
Modifies flags: CF OF
.---------------. .-.
.->| 7 ----------> 0|--.->|C|
| '---------------' | '-'
'---------------------'
Rotates the bits in the destination to the right "count" times with all data pushed out the right side re-entering on the left.
The Carry Flag will contain the value of the last bit rotated out.


ROL - Rotate Left
Usage: ROL dest,count
Modifies flags: CF OF
.-. .---------------.
|C|<-.--| 7 <---------- 0 |<-.
'-' | '---------------' |
'---------------------'
Rotates the bits in the destination to the left "count" times with
all data pushed out the left side re-entering on the right. The
Carry Flag will contain the value of the last bit rotated out.

javelin
October 21st, 2001, 04:38
Thanks for the info.