Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- A: .long 0
- .global A
- .text
- .global dec
- dec:
- movl A, %ebx
- movl A, %eax
- call writei32
- call nl
- subl $1, %ebx
- movl %ebx, A
- cmpl $0, %ebx
- jge dec
- ret
- .global main
- main:
- call readi32
- movl %eax, A
- cmp $0, A
- jge dec
- call finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement