Advertisement
joker546645

5_6 asm

Dec 7th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .686
  2. .XMM  
  3. .model flat
  4. public _dodawanie_SSE
  5. .data
  6. ALIGN 16
  7. tabl_A      dd      1.0, 2.0, 3.0, 4.0
  8. tabl_B      dd      2.0, 3.0, 4.0, 5.0
  9. liczba db 1
  10. tabl_C      dd      3.0, 4.0, 5.0, 6.0
  11. .code
  12. _dodawanie_SSE  PROC
  13. push    ebp
  14. mov ebp, esp
  15. mov eax, [ebp+8]
  16. movaps  xmm2, tabl_A
  17. movaps  xmm3, tabl_B
  18. movups  xmm4, tabl_C
  19. addps   xmm2, xmm3
  20. addps   xmm2, xmm4
  21. movups  [eax], xmm2
  22. pop ebp
  23. ret
  24. _dodawanie_SSE  ENDP
  25. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement