Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- s: .asciz "%llu\n"
- .text
- .global process
- process:
- pushl %ebp
- movl %esp, %ebp
- pushl %ebx
- pushl %edi
- pushl %esi
- movl A, %eax
- movl B, %ebx
- movl C, %ecx
- cmpl %ebx, %eax
- jg end1
- movl %ebx, %edx
- movl %eax, %ebx
- movl %edx, %eax
- end1:
- cmpl %ecx, %eax
- jg end2
- movl %ecx, %edx
- movl %eax, %ecx
- movl %edx, %eax
- end2:
- cmpl %ebx, %ecx
- jg end3
- movl %ebx, %edx
- movl %ecx, %ebx
- movl %edx, %ecx
- end3:
- movl %ecx, %eax
- popl %esi
- popl %edi
- popl %ebx
- popl %ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement