Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title to take a string and display it
- .model small
- .stack 100h
- .data
- str1 db 'enter a string',;$'
- str2 db 50 dup('$')
- str3 db 0dh,0ah, 'the entered string is','$'
- .code
- main proc
- mov ax,@data
- mov ds,ax
- mov ah,09h
- lea dx,str1
- int 21h
- mov ah,0ah
- lea dx,str2
- int 21h
- mov ah,09h
- lea dx,str3
- int 21h
- mov ah,09h
- lea dx,str2+2
- int 21h
- mov ah,4ch
- int 21h
- main endp
- end main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement