Guest User

Untitled

a guest
Aug 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .data
  2. string db "                                  ", 0
  3. section .text
  4. global  func
  5.  
  6. func:
  7.     push    ebp
  8.     mov ebp, esp
  9.     mov eax, [ebp + 8]
  10.     mov ebx, [string]
  11.     jmp LOOP1
  12.     ;mov edx, [ebp + 12]
  13.  
  14. LOOP1:
  15.     inc eax
  16.     cmp BYTE [eax], 10
  17.     je KONIEC
  18.     mov ebx, eax
  19.     inc eax
  20.     cmp BYTE [eax], 10
  21.     je KONIEC
  22.     jmp LOOP1
  23.    
  24. POLOOP1:
  25.     mov eax, [ebp + 8]
  26.     jmp LOOP2
  27.  
  28. LOOP2:
  29.     mov ebx, eax
  30.     inc eax
  31.     cmp BYTE [eax], 10
  32.     je KONIEC
  33.     inc eax
  34.     cmp BYTE [eax], 10
  35.     je KONIEC
  36.     jmp LOOP2
  37.    
  38.    
  39. KONIEC:
  40.     mov eax, 0
  41.     pop ebp
  42.     ret
Add Comment
Please, Sign In to add comment