Adding packed bytes/words using MMX instructions
So let's say that we have two registers that contain the following hexadecimal values: AB0890C2, 4598EE50. What would be the result of adding them using MMX instructions:
a. for packed byte b. for packed word
Assuming saturation arithmetic is not used?
From my understanding, if you add the two hex values normally, you get F0A17F12, but how would I add this using MMX instruction for both the packed byte and word?
I am assuming that you can get them into MMX registers.
This adds them as if they were double numbers
paddd mm0, mm1
This adds them as if they were bytes
paddb mm0, mm1