Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- vet: .byte 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- msgout_mode: .string "Moda: %dn"
- .type mode, @function
- .text
- call mode
- mode:
- movl $0, %ebx
- loop_mode_1:
- movl $-1, %esi
- movl $0, %eax
- loop_mode_2:
- incl %esi
- leal vet(%esi), %ecx
- cmpl vet(%edx), %ecx
- jne loop_mode_2
- incl %eax
- cmpl $10, %esi
- jne loop_mode_2
- cmpl %eax, %ebx
- jg loop_mode_1
- movl %eax, %ebx
- incl %edx
- cmpl $10, %edx
- jne loop_mode_1
- pushl %ebx
- pushl $msgout_mode
- call printf
- addl $8, %esp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement