Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org 0x100
  2.  
  3. pobierz1:
  4. mov ah, 1
  5. int 21h
  6. movzx dx, al
  7. push dx
  8. inc byte [licznik1]
  9. add byte [pomoc], 2
  10.  
  11. cmp al, 0Dh
  12. jne pobierz1
  13.  
  14. mov bp,sp
  15. mov ah,2h
  16.  
  17. mov cx, [licznik1]
  18.  
  19. add bp, [pomoc]
  20. sub bp, 2           ; nie ściągamy ze stosu ostatniego elementu żeby nie wyświetlać entra
  21. wys:
  22. mov dx, [bp]
  23. int 21h
  24. sub bp, 2
  25. cmp cx, 0
  26. dec cx
  27. jne wys
  28.  
  29. int 20h
  30.  
  31. section .dane
  32. licznik1 db 0
  33. licznik2 db 0
  34. pomoc db 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement