In: Electrical Engineering
5.29) 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
5.30) Consider the following block of operations that might be found inside a loop. Explainf what the instructions do and what operation is being performed on the data.
MOVQ MM1, A ; move 8 pixels of image A
MOVQ MM2, B ; move 8 pixels of image B
MOVQ MM3, MM1
PSUBSB MM1, MM2
PSUBSB MM2, MM3
POR MM1, MM2