Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .data
- numstr:
- .ascii "0"
- .set len, . - numstr
- .text
- .globl _start
- _start:
- mov $5, %ebx
- call loop
- mov $1, %eax
- xor %ebx, %ebx
- int $0x80
- loop:
- mov %eax, %ebx
- mov %eax, %ecx
- call prn
- ret
- prn:
- add $48, %ebx
- mov %ebx, numstr
- mov $numstr, %ecx
- mov $len, %edx
- mov $4, %eax
- mov $1, %ebx
- int $0x80
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement