punpckhbw.asm 437 B

12345678910111213141516171819202122232425262728293031
  1. global _start
  2. section .data
  3. align 16
  4. quad1:
  5. dq 0xccddccddad007fff
  6. quad2:
  7. dq 0xaabbaabbad007fff
  8. quad3:
  9. dq 0x00ff00ffad007fff
  10. mydword:
  11. dd 0xcafebabe
  12. myaddress:
  13. dq 0x00adbeefc0de00ce
  14. %include "header.inc"
  15. movq mm0, [quad1]
  16. movq mm1, [quad3]
  17. movq mm2, [quad2]
  18. movq mm3, [quad3]
  19. punpckhbw mm0, [myaddress]
  20. punpckhbw mm0, mm1
  21. punpckhbw mm1, [quad2]
  22. punpckhbw mm2, [quad1]
  23. punpckhbw mm3, [quad1]
  24. %include "footer.inc"