SHARE
TWEET

Untitled

a guest Jul 5th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .global f
  2. .proc 4
  3.  
  4. f:
  5. save %sp, -96, %sp
  6.  
  7. mov %i0, %l0   // wskaźnik na tab
  8. add %i0, 4, %l1   // wskaźnik na nastepny element
  9.  
  10. mov 1, %l7     // iterator dla głownej petli
  11. mov 16, %l6     // iterator dla mnozenia
  12. mov 15, %l4     // rozmiar tab      
  13. mov 0, %l0     // 0 w pierwszym miejscu
  14.  
  15. petla:
  16. mov 0, %l2
  17. ba mnozenie
  18. add %l1, %l2, %l7
  19.  
  20. add %l7, 4, %l7
  21. add %l0, 4, %l0
  22. subcc %l4, 1, %l4
  23. bneg koniec
  24.  
  25. mnozenie:
  26. add %l2, %l0, %l2
  27. subcc %l6, 1, %l6
  28. bneg petla
  29. nop
  30.  
  31. koniec:
  32. ret
  33. restore
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top