Advertisement
dxvmxnd

Untitled

Sep 11th, 2024 (edited)
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. org 100h
  2.  
  3. arr dw 4,4,4,1,3,2
  4.  
  5. push arr
  6. call MyProc
  7.  
  8. MyProc:
  9. push bp
  10. mov bp, sp
  11. mov si, [bp + 4]
  12. mov cx, 6
  13. mov dx, 0
  14. Cycle:
  15. cmp [si], 5
  16. jb @F
  17. mov ax, [si]
  18. mov bl, 4
  19. div bl
  20. cmp ah, 0
  21. jne @F
  22. add dx, [si]
  23. @@:
  24. add si, 2
  25. loop Cycle
  26.  
  27. pop si
  28. mov sp, bp
  29. pop bp
  30. ret 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement