Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. mov ecx, 0
  2. mov edi, 0
  3. mov esi, 0
  4. mov ebx, 0
  5. top_sort:
  6. cmp edi, 10
  7. jge top_sort_end
  8.  
  9. mov ebx, esi
  10. inner_loop1:
  11. cmp ebx, 10
  12. jge end_loop1
  13.  
  14. mov eax, DWORD [numArr + ebx * 4]
  15. cmp eax, DWORD [numArr + ebx + 1 * 4]
  16. jge swapper
  17. jmp end_loop1
  18.  
  19. swapper:
  20. mov ecx, DWORD [numArr + ebx + 1 * 4]
  21. mov DWORD [numArr + ebx * 4], ecx
  22. mov DWORD [numArr + ebx + 1 *4], eax
  23. inc ebx
  24. end_loop1:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement