YauhenMardan

asm

Jun 8th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Count1:
  2. mov eax,0;counter
  3. push ecx
  4. mov ecx, dword ptr n
  5. Count2:
  6. cmp [mat][esi],0
  7. jg Gr
  8. inc esi
  9. cmp ecx,1
  10. jne Neql
  11. inc esi
  12. mov eax,0
  13. jmp Skip
  14. Neql:
  15. dec ecx ; ?
  16.  
  17. Count3:
  18. cmp [mat][esi],0
  19. jl Ls
  20. inc eax
  21. Ls:
  22. inc esi
  23. loop Count3
  24. jmp Skip
  25. Gr:
  26. inc esi
  27. loop Count2
  28. Skip:
  29. mov dword ptr count,eax
  30. pushad
  31. invoke wsprintf, addr ResStr, addr szFormat, eax
  32. ;invoke dwtoa, eax, addr ResStr
  33. invoke StdOut, addr ResStr
  34. popad
  35. pop ecx
  36. loop Count1
Advertisement
Add Comment
Please, Sign In to add comment