Guest User

Untitled

a guest
Apr 30th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. init:
  2. cld
  3. lea di, str1
  4. mov ax, 20h
  5. mov ch, 0
  6. mov cl, lenS
  7. mov bx, cx
  8. mov dx, cx
  9. dec di
  10. stl:
  11. dec cx
  12. itl:
  13. inc di
  14. cmp [di], al
  15. je nxt
  16. cmp cx, 0
  17. jnz stl
  18. nxt:
  19. push ax
  20. mov ax, dx
  21. sub bx, cx
  22. jz nxc
  23. call @sort
  24. nxc:
  25. mov bx, cx
  26. mov dx, ax
  27. pop ax
  28. cmp cx, 0
  29. jnz itl
  30. mov minLen, dx
Advertisement
Add Comment
Please, Sign In to add comment