I am looking for single instruction, which would be able to exchange two mmx registers directly, like XCHG for general-purpose registers.
Thanks :grin:
Posted on 2003-07-15 17:42:37 by MazeGen
Sorry, no.

I don't look for instructions - I have the full list. Find all the instructions that write to more than one MMX register and none of those work for this task.
Posted on 2003-07-15 18:42:59 by bitRAKE
pxchg MACRO mmxreg1:REQ, mmxreg2:REQ

pxor mmxreg1, mmxreg2
pxor mmxreg2, mmxreg1
pxor mmxreg1, mmxreg2
pxchg MM0, MM1
:grin: :grin:
Posted on 2003-07-15 18:47:41 by arkane