1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
.file "main.cpp"
.def ___main; .scl 2; .type 32; .endef
.section .rdata,"dr"
LC0:
.ascii "%d\12\0"
.text
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
andl $-16, %esp
pushl %edi
pushl %esi
pushl %ebx
subl $68, %esp
call ___main
movl $1, 20(%esp)
movl $1, 24(%esp)
movl $2, 28(%esp)
movl $3, 32(%esp)
movl $5, 36(%esp)
movl $8, 40(%esp)
movl $13, 44(%esp)
movl $21, 48(%esp)
movl $34, 52(%esp)
movl $55, 56(%esp)
movl $89, 60(%esp)
movl __imp___iob, %edi
addl $32, %edi
xorl %ebx, %ebx
leal 20(%esp), %esi
L2:
movl (%esi,%ebx,4), %eax
movl %eax, 4(%esp)
movl $LC0, (%esp)
call _printf
movl %edi, (%esp)
call _fflush
incl %ebx
cmpl $10, %ebx
jne L2
xorl %eax, %eax
addl $68, %esp
popl %ebx
popl %esi
popl %edi
leave
ret
.def _printf; .scl 2; .type 32; .endef
.def _fflush; .scl 2; .type 32; .endef
|