.globl main foo: pushl %ebp movl %esp,%ebp movl 8(%ebp),%eax sall $1,%eax popl %ebp ret main: pushl $10 call foo ret