Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function_label:
- pushl %ebp
- movl %esp, %ebp
- < normal function code goes here>
- movl %ebp, %esp
- popl %ebp
- ret
- .section .data
- message:
- .asciz "> Hello from function #%dn"
- .section .text
- .globl main
- main:
- nop
- call overhere
- pushl $0
- call exit
- overhere:
- pushl %ebp
- movl %esp, %ebp
- pushl $1
- pushl $message
- call printf
- add $8, %esp
- movl %ebp, %esp
- popl %ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement