Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- movl $0, %ebx
- movl $0, %esi
- iteration:
- читаем число
- если eof — eof
- закидываем в %ebx
- testl %eax, $1
- jz odd
- even:
- addl %ebx, %esi
- jmp iteration
- odd:
- addl %ebx, %edx
- jmp iteration
- eof:
- movl %edx, %eax
- call writei32
- movl %esi, %eax
- call writei32
- call finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement