call function

作者在 2010-12-30 19:35:23 发布以下内容
.data
output:
    .asciz "This is section %d\n"

.text
.global _start
_start:
    pushl $1
    pushl $output
    call printf
    add $8, %esp
    call overhere
    pushl $3
    pushl $output
    call printf
    add $8, %esp
    pushl $0
    call exit
overhere:
    pushl %ebp
    movl %esp, %ebp
    pushl $2
    pushl $output
    call printf
    add $8, %esp
    movl %ebp, %esp
    popl %ebp
    ret
汇编 | 阅读 1061 次
文章评论,共1条
aqaq110
2011-02-10 12:20
1
<img src="image/face/1.gif" class="face">
游客请输入验证码