Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 0x100
- pobierz1:
- mov ah, 1
- int 21h
- movzx dx, al
- push dx
- inc byte [licznik1]
- add byte [pomoc], 2
- cmp al, 0Dh
- jne pobierz1
- mov bp,sp
- mov ah,2h
- mov cx, [licznik1]
- add bp, [pomoc]
- sub bp, 2 ; nie ściągamy ze stosu ostatniego elementu żeby nie wyświetlać entra
- wys:
- mov dx, [bp]
- int 21h
- sub bp, 2
- cmp cx, 0
- dec cx
- jne wys
- int 20h
- section .dane
- licznik1 db 0
- licznik2 db 0
- pomoc db 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement