Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define y [ebp+12]
  2. %define x [ebp+8]
  3. %define a [ebp-12]
  4. %define b [ebp-8]
  5. %define c [ebp-4]
  6.  
  7. global example
  8.  
  9. example:
  10. enter 12,0
  11. pusha
  12. ;sub esp, 12 ;allocate space for a,b,c; This line is actually not needed because enter 12,0 takes care of it
  13. mov [ebp-12], 1 ;a=1
  14. mov [ebp-8], 2 ;b=2
  15. mov [ebp-4], 3 ;c=3
  16. push x
  17. push b
  18. push b
  19. push a
  20. push y
  21. call f
  22. add esp, 20
  23. popa
  24. leave
  25. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement