Intermediate Assembly Language
Q73 / 100

What does the SHR instruction do?

Correct! Well done.

Incorrect.

The correct answer is B) Logical right shift — shifts bits right, filling with 0s, dividing unsigned values by powers of 2

B

Correct Answer

Logical right shift — shifts bits right, filling with 0s, dividing unsigned values by powers of 2

Explanation

SHR EAX, 2 divides EAX by 4 for unsigned values, filling upper bits with 0. SAR (arithmetic right shift) preserves the sign bit for signed division.

Progress
73/100