Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define y [ebp+12]
- %define x [ebp+8]
- %define a [ebp-12]
- %define b [ebp-8]
- %define c [ebp-4]
- global example
- example:
- enter 12,0
- pusha
- ;sub esp, 12 ;allocate space for a,b,c; This line is actually not needed because enter 12,0 takes care of it
- mov [ebp-12], 1 ;a=1
- mov [ebp-8], 2 ;b=2
- mov [ebp-4], 3 ;c=3
- push x
- push b
- push b
- push a
- push y
- call f
- add esp, 20
- popa
- leave
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement