Intermediate Assembly Language
Q52 / 100

What is MOVZX and MOVSX?

Correct! Well done.

Incorrect.

The correct answer is B) MOVZX zero-extends a smaller value into a larger register; MOVSX sign-extends it

B

Correct Answer

MOVZX zero-extends a smaller value into a larger register; MOVSX sign-extends it

Explanation

MOVZX EAX, BYTE PTR [mem] loads a byte and pads upper bits with 0. MOVSX EAX, BYTE PTR [mem] replicates the sign bit for signed values.

Progress
52/100