psubw.asm 566 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. global _start
  2. section .data
  3. align 16
  4. quad1:
  5. dq 0xad0000ceadad00ff
  6. quad2:
  7. dq 0xffffffffffffffff
  8. quad3:
  9. dq 0x0000000000000000
  10. quad4:
  11. dq 0x7fff8000ffff0808
  12. myquad:
  13. dq 0xad0000ceadad00ff
  14. mydword:
  15. dd 0xcafebabe
  16. myaddress:
  17. dq 0x00adbeefc0de00ce
  18. %include "header.inc"
  19. movq mm0, [quad1]
  20. movq mm1, [quad2]
  21. movq mm2, [quad3]
  22. movq mm3, [quad4]
  23. movq mm4, [quad1]
  24. psubw mm1, [quad2]
  25. psubw mm1, mm2
  26. psubw mm2, [quad1]
  27. psubw mm2, mm3
  28. psubw mm3, [quad3]
  29. psubw mm3, mm4
  30. psubw mm4, [quad1]
  31. psubw mm4, mm1
  32. psubw mm4, mm3
  33. %include "footer.inc"