Explain what the following fragment of code achieves. Note that the data is signed and that the packed shift right arithmetic instruction operates on word (16?bit) operands.


MOVQ MM0,MM1
PSRAW MM0,15
PXOR MM0,MM1



MOVQ MM0,MM1 ;Copy MM1 to MM0
PSRAW MM0,15 ;Shift the value(s) in MM0 15 places right (fill each word with sign bits)
PXOR MM1,MM0 ;Perform an exclusive OR between MM1 and the flag words.
;Words that were negative in MM1 will be inverted.
;Positive words will be unchanged.

Computer Science & Information Technology

You might also like to view...

Which of the following types of communications tools is used for forums and discussion groups?

A. Public Asynchronous B. Private Asynchronous C. Public Synchronous D. Private Synchronous

Computer Science & Information Technology

The exact set of steps used to solve a problem is called a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

During a passive search the hacker does not connect to the target system

Indicate whether the statement is true or false.

Computer Science & Information Technology

Which of the following describes item A in the accompanying illustration?

A. The type of form B. The type of object C. The name of the button D. The state of the button

Computer Science & Information Technology