Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .text
- global _start
- _start:
- mov ecx, 12
- mov eax, '1'
- l1:
- mov [num], eax
- mov eax, 4
- mov ebx, 1
- push ecx
- mov ecx, num
- mov edx, 1
- int 0x80
- mov byte [ws], 10
- mov eax, 4
- mov ebx, 1
- mov ecx, ws
- mov edx, 1
- int 0x80
- mov eax, [num]
- sub eax,'0'
- inc eax
- add eax,'0'
- pop ecx
- loop l1
- mov eax, 1
- int 0x80
- section .bss
- num resb 1
- ws resb 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement