Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .data
- string db " ", 0
- section .text
- global func
- func:
- push ebp
- mov ebp, esp
- mov eax, [ebp + 8]
- mov ebx, [string]
- jmp LOOP1
- ;mov edx, [ebp + 12]
- LOOP1:
- inc eax
- cmp BYTE [eax], 10
- je KONIEC
- mov ebx, eax
- inc eax
- cmp BYTE [eax], 10
- je KONIEC
- jmp LOOP1
- POLOOP1:
- mov eax, [ebp + 8]
- jmp LOOP2
- LOOP2:
- mov ebx, eax
- inc eax
- cmp BYTE [eax], 10
- je KONIEC
- inc eax
- cmp BYTE [eax], 10
- je KONIEC
- jmp LOOP2
- KONIEC:
- mov eax, 0
- pop ebp
- ret
Add Comment
Please, Sign In to add comment