Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "test.c"
- .text
- .globl test
- .type test, @function
- test:
- pushl %ebp
- movl %esp, %ebp
- subl $16, %esp
- movl $0, -8(%ebp)
- movl $0, -4(%ebp)
- notl -8(%ebp)
- notl -4(%ebp)
- movl 8(%ebp), %ecx
- movl -8(%ebp), %eax
- movl -4(%ebp), %edx
- shldl %eax, %edx
- sall %cl, %eax
- testb $32, %cl
- je .L3
- movl %eax, %edx
- xorl %eax, %eax
- .L3:
- movl %eax, -8(%ebp)
- movl %edx, -4(%ebp)
- movl -8(%ebp), %eax
- leave
- ret
- .size test, .-test
- .section .rodata
- .LC0:
- .string "%d"
- .LC1:
- .string "%ul\n"
- .text
- .globl main
- .type main, @function
- main:
- pushl %ebp
- movl %esp, %ebp
- andl $-16, %esp
- subl $32, %esp
- movl $.LC0, %edx
- movl 12(%ebp), %eax
- addl $4, %eax
- movl (%eax), %eax
- leal 28(%esp), %ecx
- movl %ecx, 8(%esp)
- movl %edx, 4(%esp)
- movl %eax, (%esp)
- call __isoc99_sscanf
- movl 28(%esp), %eax
- movl %eax, (%esp)
- call test
- movl $.LC1, %edx
- movl %eax, 4(%esp)
- movl %edx, (%esp)
- call printf
- movl $0, %eax
- leave
- ret
- .size main, .-main
- .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement