x86 shift and rotate instructions Flashcards

1
Q

This shifts the source operand to the left from 1 to 31 bit positions, while the empty bit positions are cleared. Then the CF flag is loaded with the last bit shifted out of the operand

A

SAL Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

This shifts the source operand to the right from 1to 31 bit positions, while the empty bit positions are cleared if the operand is positive (+) and set if the operand is negative (-). Then, the CF flag is loaded with the last bit shifted out of the operand

A

SAR Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This shifts the source operand right by from 1 to 31 bit positions, while empty bit positions are cleared, and the CF flag is loaded with the last bit shifted out

A

SHR Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This rotates bits to the left, with wraparound. Then, the CF flag is loaded with the last bit shifted out of the operand.

A

ROL Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This rotates bits to the right, with wraparound. Then, the CF flag is loaded with the last bit shifted out of the operand.

A

ROR Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This rotates bits to the left, including the CF flag, with wraparound. This instruction treats the CF flag as a 1-bit extension on the upper end of the operand.

A

RCL Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

This rotates bits to the right, including the CF flag, with wraparound. This instruction treats the CF flag as a 1-bit extension on the lower end of the operand.

A

RCR Op, Qty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly