Advertisement
apl-mhd

stack

Aug 28th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .STACK 100h
  2. .CODE
  3. mov ah,1
  4. mov cx,0
  5. int 21h
  6.  
  7. loop1:
  8.     cmp al,0dh   ; comparing with "enter"
  9.     je loop2
  10.     push ax
  11.     int 21h
  12.     inc cx
  13.     jmp loop1
  14.    
  15. loop2:
  16.     mov ah,2
  17.     mov dl,0dh
  18.     int 21h
  19.     mov dl,0ah
  20.     int 21h
  21.    
  22.     top:
  23.     pop dx
  24.     int 21h
  25.    
  26.     loop top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement