; CS2011, A Term 1999
; Prof. Sergio A. Alvarez

title Sample Main Module

.model small
.stack

.data
inprompt db "Please enter a string: ",'$'
ackmessage db "Your string is: ",'$'
newline db 0Ah,0Dh,'$'
string1 db 100 dup(?)
string2 db 100 dup(?)
maxchars=100

.code

extrn getstring:proc, putstring:proc

main proc
.startup
   mov dx,offset inprompt
   call putstring
   mov dx,offset string1
   call getstring
   mov di,dx
   mov dx,offset newline
   call putstring
   mov dx,offset ackmessage
   call putstring
   mov dx,di
   call putstring
.exit
main endp

end


