Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. title to take a string and display it
  2. .model small
  3. .stack 100h
  4. .data
  5. str1 db 'enter a string',;$'
  6. str2 db 50 dup('$')
  7. str3 db 0dh,0ah, 'the entered string is','$'
  8.  
  9. .code
  10. main proc
  11. mov ax,@data
  12. mov ds,ax
  13.  
  14. mov ah,09h
  15. lea dx,str1
  16. int 21h
  17.  
  18. mov ah,0ah
  19. lea dx,str2
  20. int 21h
  21.  
  22. mov ah,09h
  23. lea dx,str3
  24. int 21h
  25.  
  26. mov ah,09h
  27. lea dx,str2+2
  28. int 21h
  29.  
  30. mov ah,4ch
  31. int 21h
  32.  
  33. main endp
  34. end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement