Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. 386
  2. .model flat, stdcall
  3. .stack 4096
  4. ExitProcess PROTO, dwExitCode: DWORD
  5.  
  6. .data
  7. masyvas DWORD 5d,9d,103d,37d,20d,201d,8d
  8. .code
  9. main PROC
  10. mov esi, OFFSET masyvas
  11. mov ecx, LENGTHOF masyvas
  12. mov eax,0
  13. mov ebx,9d
  14. mov edx,0
  15. mov edi,100d
  16. ciklas:
  17. mov eax, [esi]
  18. cmp eax,ebx
  19. ja L1
  20. L3:
  21. add esi, TYPE masyvas
  22. CMP ecx,0
  23. je L4
  24. loop ciklas
  25. L1:
  26. cmp edi,eax
  27. ja L2
  28. jb L3
  29. L2:
  30. add edx,[esi]
  31. jmp L3
  32. L4:
  33. INVOKE ExitProcess, 0
  34. main ENDP
  35. END main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement